delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/12/10:17:32

From: mschulter AT DOT value DOT net (M. Schulter)
Newsgroups: comp.os.msdos.djgpp
Subject: AT&T
Date: 7 Sep 1997 23:23:54 GMT
Organization: Value Net Internetwork Services Inc.
Lines: 64
Message-ID: <5uvd2a$dhk$1@vnetnews.value.net>
NNTP-Posting-Host: value.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Subject: Re: AT&T
Newsgroups: comp.os.msdos.djgpp
References: <Pine DOT SUN DOT 3 DOT 91 DOT 970827101801 DOT 7942L-100000 AT is>
Distribution: 

Eli Zaretskii (eliz AT is DOT elta DOT co DOT il) wrote:
: 
: On Sat, 26 Jul 1997, Stephen Milley wrote:
: 
: > Is there any documentation I can obtain to learn the AT&T style assembly
: > for DJGPP?
: 
: Please download the DJGPP FAQ list (v2/faq210b.zip from the same place 
: you get DJGPP) and read section 17.1 there.  It explains the basic 
: differences and points you to further documentation on this.

Hi, there, and please let me strongly support Eli Zaretskii's
recommendation that you start with Section 17.1 of the FAQ. Whether
you're an absolute newbie at any kind of assembly language like me, or
an expert used to Intel syntax, the information there is very
important.

If you already know some assembler, and are interested mainly in using
inline assembly within a C program, then the FAQ, the GNU assembler
(GAS) docs available by entering

info as

and Brennan's famous tutorial on inline assembly mentioned in Section 17.1
of the FAQ should get you started. 

If you're like me, and are interested in learning AT&T and GAS as your
first experience with assembler, then things get a bit more
complicated <grin>. Personally, I'm interested in writing standalone
assembler programs for GAS, and would much enjoy keeping in touch with
others trying the same thing.

One invaluable resource for newbies as well as experienced assembly
programmers accustomed to Intel syntax is the assembly language
section of the new DJGPP User's Guide at DJ's web site. This section,
like the guide as a whole, is a work in progress. The first part of
the assembly section, a fine introductioon to 80386 architecture and AT&T
syntax by Jim Schwarz, is now available at

http://www.delorie.com/djgpp/doc/ug/asm/about-386.html

As John Aldrich commented some months ago, learning GAS as one's first
assembler means looking at tutorials and references written in Intel
syntax and translating them into AT&T coding. Actually, from what I've
seen, this isn't hard, and it's a very important skill, since almost all
references (including Intel's own manuals) use Intel notation.

Using Brennan's tutorial, the GAS docs, and the new Jim Schwarz
tutorial, I've managed to write a few trivial inline assembly
routines. At this point, I'm trying to come up with a trivial
standalone program -- unless the DJGPP User's Guide or some other new
tutorial beats me to it <grin>.

Most respectfully,

Margo Schulter
mschulter AT value DOT net

(To reply, please remove the extra . from my default address)

- Raw text -


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