Mail Archives: djgpp/1998/10/01/19:34:22
Neil Walker wrote:
>
> Can anyone help with the following problems as I'm new to DJGPP and
> cannot seem to find the required help in INFO:
>
> 1. How to set the compiler to allow 286 specific commands, e.g. shl di,6
> (in borland C it was done with the -1 option, e.g. gcc -1 file.c)
It always generates at least 386 code, so that's not relevant. It can
generate code for various post-386 models with the -march option; see
the GCC docs. (Though beware that at least -march=ppro is buggy.)
> 2. Syntax to allow inline assembly - I assumed it would be 'asm', e.g.
> asm mov dx,3DAh
This is a rather complicated issue; the syntax is very different. See
FAQ section 18.13.
--
Nate Eldredge
nate AT cartsys DOT com
- Raw text -