delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/19/05:49:44

Date: Thu, 19 Sep 1996 02:27:56 -0700 (PDT)
From: Samuel Vincent <svincent AT cs DOT sonoma DOT edu>
To: MIKAEL BACKMAN <di95mba AT student DOT hk-r DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: Porting from Watcom to DJGPP
In-Reply-To: <Pine.SOL.3.95.960919093325.3454B-100000@columbia>
Message-ID: <Pine.GSO.3.94.960919022722.4377A-100000@zippy>
MIME-Version: 1.0

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 -


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