Mail Archives: djgpp/1998/10/01/18:18:24
> 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)
DJGPP is a 32-bit compiler and so only works on a 386 upwards.
Using -O1, -O2, -O3 optimises the program to various levels. -m486
and -mpentium can be used for higher systems.
> 2. Syntax to allow inline assembly - I assumed it would be 'asm', e.g.
> asm mov dx,3DAh
> but this does not work (the disallow inline assembly flag is not set)
DJGPP uses inline ASM in the AT&T format. There's a primer at
www.delorie.com/djgpp and while you're there you should download and read
the latest faq. Both of these questions are covered in more detail in the
faq.
James Arthur
jaa AT arfa DOT clara DOT net
ICQ#15054819
- Raw text -