Sender: nate AT cartsys DOT com Message-ID: <36140F65.6430832@cartsys.com> Date: Thu, 01 Oct 1998 16:25:25 -0700 From: Nate Eldredge X-Mailer: Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486) MIME-Version: 1.0 To: Neil Walker CC: djgpp AT delorie DOT com Subject: Re: assembler switches References: <3614151E DOT 3C3E AT syntegra DOT bt DOT co DOT uk> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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