www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/12/18/07:24:27

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
Posted-Date: Tue, 18 Dec 2001 13:20:35 +0100 (MET)
From: Cédric Lucantis <c DOT lucantis AT caramail DOT com>
To: djgpp AT delorie DOT com
Message-ID: <1008671788002524@caramail.com>
X-Mailer: Caramail - www.caramail.com
X-Originating-IP: [213.56.50.125]
Mime-Version: 1.0
Subject: Re: Assembler Language
Date: Tue, 18 Dec 2001 11:36:28 GMT+1
Reply-To: djgpp AT delorie DOT com

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

--=_NextPart_Caramail_0025241008671788_ID
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

> -------Message d'origine-------
> De : "Andrew Fairburn" <a DOT j DOT fairburn AT dur DOT ac DOT uk>
> Date : 17/12/2001 17:19:23
> 
> Where can i find help on the syntax of the assembler code 
for DJGPP? and
> what is command line to compile it?
> 
> Thanks.
> 
> 
> 
> 

Hello

I think you can find docs about that on the djgpp site :
http://www.delorie.com

DJGPP uses AT&T (used on Unix platforms) syntax, wich is 
different of the Intel syntax that is often used on Dos/Win 
platforms (microsoft, borland ...). 

A little utility is provided with DJGPP to convert 
assembler source from one style to another (I think it's 
called ta2as).

You can also search for NASM, an open source assembler that 
you can use with DJGPP.

I don't have anymore adresses to give you but I remember I 
found easily by searching the keywords "at&t syntax, NASM, 
assembler, ... There are lots of docs and tutorials on the 
web. Note : the DJGPP assembler is the same as the Unix and 
Linux systems.

To compile an assembler source with DJGPP, you just have to 
invoke 'gcc' like with a C source, but your file must have 
the extension .s :

gcc foo.s -o foo.exe

With DJGPP, there's another way to learn about assembler : 
you can stop the compilation process just before the 
assembler, so you can produce an assembler code from a C or 
C++ source. Use the -S (uppercase) switch :

gcc -S foo.c

(by default, gcc will produce a foo.s file)


See you ..
_________________________________________________________
Le journal des abonn=E9s Caramail - http://www.carazine.com


--=_NextPart_Caramail_0025241008671788_ID
Content-Type: text/x-vCard; name="vCard.vcf"
Content-Transfer-Encoding: quoted-printable
X-MIME-Autoconverted: from 8bit to quoted-printable by mail4.caramail.com id NAA26013

BEGIN:VCARD
VERSION:2.1
FN:Pillou Jean Fran=E7ois
N:Pillou;Jean Fran=E7ois;
EMAIL;INTERNET:webmaster AT commentcamarche DOT net
URL:http://www.commentcamarche.net
END:VCARD


--=_NextPart_Caramail_0025241008671788_ID--

- Raw text -


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