From: Joseph Rose Newsgroups: comp.os.msdos.djgpp Subject: __stdcall and fastcall in DJGPP? Date: Sun, 30 Apr 2000 18:18:08 -0400 Organization: Posted via Supernews, http://www.supernews.com Lines: 11 Message-ID: <390CB120.89612A6D@pop.gis.net> X-Complaints-To: newsabuse AT supernews DOT com X-Mailer: Mozilla 4.7 [en]C-NECCK (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com My VGADraw library's Draw_Tri routine is written in assembler and uses an index register to access a specific set of coordinates in the stack. As it is now, partially converted to 386p/DJGPP, it assumes the parameters are in reverse order from DJGPP's default. Can I use __stdcall or some other parameter stack-modifying keyword to reverse the parameter order and perhaps even to force the callee to fix the stack on return? Also, how does fastcall work in DJGPP/DOS? I have a few functions that use the registers for the parameters.