delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/01/19:34:22

Sender: nate AT cartsys DOT com
Message-ID: <36140F65.6430832@cartsys.com>
Date: Thu, 01 Oct 1998 16:25:25 -0700
From: Nate Eldredge <nate AT cartsys DOT com>
X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486)
MIME-Version: 1.0
To: Neil Walker <neil DOT walker AT syntegra DOT bt DOT co DOT uk>
CC: djgpp AT delorie DOT com
Subject: Re: assembler switches
References: <3614151E DOT 3C3E AT syntegra DOT bt DOT co DOT uk>

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 -


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