delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/09/19/04:22:16

Date: Thu, 19 Sep 1996 10:02:07 +0200 (MET DST)
From: MIKAEL BACKMAN <di95mba AT student DOT hk-r DOT se>
To: djgpp AT delorie DOT com
Subject: Porting from Watcom to DJGPP
Message-ID: <Pine.SOL.3.95.960919093325.3454B-100000@columbia>
MIME-Version: 1.0

Hello.

I heard that DJGPP would produce faster code than Watcom, so I'm trying to
port my Watcom sources to DJGPP. I've encountered a few problems with
this.

----------------

1. When using Watcom I declared my interrupt routines as follows :

void (__interrupt __far __cdecl Introutine)()

This won't work with DJGPP, I get a parse error from the compiler.

*** How do I overcome this problem ?

------------------

2. In Watcom I used pragmas for inline assembly functions.

#pragma aux func =3D  \
 "shl eax,1"        \
 parm caller [eax]  \
 value [eax];

Doesn't really do much... Just an example.

* parm caller [eax] show where to put the input parameter.
* value [eax] shows where it will be returned.

*** How do I declare the in & out parameters in DJGPP's assembler AS?

-------------

Thanks.




-------------------------------------------------------------
Mikael B=E4ckman
College of Karlskrona / Ronneby
Sweden

E-mail : di95mba AT student DOT hk-r DOT se
Homepage : http://www.rby.hk-r.se/student/di95mba/di95mba.html
--------------------------------------------------------------

- Raw text -


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