delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/01/18:18:24

Reply-To: <arfa AT clara DOT net>
From: "Arthur" <arfa AT clara DOT net>
To: "DJGPP Mailing List" <djgpp AT delorie DOT com>,
"Neil Walker" <neil DOT walker AT syntegra DOT bt DOT co DOT uk>
Subject: RE: assembler switches
Date: Thu, 1 Oct 1998 22:14:18 +0100
Message-ID: <000701bded80$7399d4a0$ea4e08c3@arthur>
MIME-Version: 1.0
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
In-reply-to: <3614151E.3C3E@syntegra.bt.co.uk>
Importance: Normal

> 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 -


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