Mail Archives: djgpp/1996/09/19/05:49:44
On Thu, 19 Sep 1996, MIKAEL BACKMAN wrote:
> Hello.
>=20
> I heard that DJGPP would produce faster code than Watcom, so I'm trying t=
o
> port my Watcom sources to DJGPP. I've encountered a few problems with
> this.
>=20
> ----------------
>=20
> 1. When using Watcom I declared my interrupt routines as follows :
>=20
> void (__interrupt __far __cdecl Introutine)()
>=20
> This won't work with DJGPP, I get a parse error from the compiler.
>=20
> *** How do I overcome this problem ?
>=20
> ------------------
>=20
> 2. In Watcom I used pragmas for inline assembly functions.
>=20
> #pragma aux func =3D \
> "shl eax,1" \
> parm caller [eax] \
> value [eax];
>=20
> Doesn't really do much... Just an example.
>=20
> * parm caller [eax] show where to put the input parameter.
> * value [eax] shows where it will be returned.
>=20
> *** How do I declare the in & out parameters in DJGPP's assembler AS?
>=20
> -------------
>=20
> Thanks.
>=20
>=20
>=20
>=20
> -------------------------------------------------------------
> Mikael B=E4ckman
> College of Karlskrona / Ronneby
> Sweden
>=20
> E-mail : di95mba AT student DOT hk-r DOT se
> Homepage : http://www.rby.hk-r.se/student/di95mba/di95mba.html
> --------------------------------------------------------------
You need to check out the FAQ.. All of your questions are covered in
there.
-Sam
- Raw text -