delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/04/30/17:44:18

From: dontmailme AT iname DOT com (Steamer)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: __stdcall and fastcall in DJGPP?
Date: Sun, 30 Apr 2000 22:13:16 GMT
Organization: always disorganized
Lines: 16
Message-ID: <390cafee.47722636@news.freeserve.net>
References: <390CB120 DOT 89612A6D AT pop DOT gis DOT net>
NNTP-Posting-Host: modem-18.coris-wrasse.dialup.pol.co.uk
X-Trace: newsg2.svr.pol.co.uk 957132797 17503 62.136.253.18 (30 Apr 2000 22:13:17 GMT)
NNTP-Posting-Date: 30 Apr 2000 22:13:17 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Free Agent 1.11/32.235
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Joseph Rose wrote:

>Also, how does fastcall work in DJGPP/DOS?  I have a few functions that
>use the registers for the parameters.

You have a prototype like this:

    int foo(int arg1, int arg2) __attribute__ ((regparm(n)));

where n = 1, 2 or 3 (the number of parameters passed in registers).

Uses EAX, EDX and ECX (probably in that order, but you should check).

You can't use this while profiling, however.

S.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019