Re: in line 386+ assembly code
---------------------------------------------------------------------------
From Vladislav Kaipetsky <>
Organization NLnet
Date Fri, 9 Aug 1996 12:15:49 GMT
Newsgroups rec.games.programmer
Message-ID <
[email protected]>
---------------------------------------------------------------------------
[email protected] (Jayson Mackie) writes:
> At the moment I am back on borland C 3.1 which means I can only put
> 286 assembly code inline with my C. I want to make things easier on
> myself. Which of either Watcom or Borland 4.X would let me put 386+
> assembly inline with my C code? And does Watcom still have the edge in
> executable speed?
>
> keep well
> jays.
Actually, if you put the string
#pragma inline
before your inline asm expressions, then BC 3.1 will do fine
with all 386 instructions.
It will generate ASM file which will then be compiled by TASM.
However, this means that you need TASM.EXE to be in your
BC\BIN directory and/or in PATH variable.
BTW, #pragma inline is the only known for me way of writing
interrupt handlers with inline asm, because DGROUP expression
couldn't also be compiled by BC itself - it should be passed
as ASM file to TASM.
Hope this info will hold you on Borland C++ 3.1, since in
my opinion its text IDE is still best available for DOS real
mode programming, and only MSDEV ver.4.0 IDE seems to be
better overall.