Date: Tue, 2 Sep 1997 20:22:54 +0000 ( ) From: "Gurunandan R. Bhat" To: "M. Schulter" Cc: djgpp AT delorie DOT com Subject: Re: Great new 386/GAS guide In-Reply-To: <5u0290$b4n$1@vnetnews.value.net> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On 27 Aug 1997, M. Schulter wrote: > This message is just to express appreciation for an exciting new > introduction by Jim Schwarz to 80386 architecture and assembly > language programming with DJGPP GAS, the GNU assembler (as.exe): > > http://www.delorie.com/djgpp/doc/ug/asm/about-386.html [SNIP] > The first is the famous guide by Brennan "Bas" Underwood: > http://www.rt66.com/~brennan/djgpp/djgpp_asm.html > The other is one of a series of DJGPP tutorials by avly AT castle DOT net: > http://www.castle.net/~avly/djasm.html Let me join the original poster in thanking the authors of the three tutorials metioned. Without detracting credit in any way from these excellent tutorials, may I add that DJGPP lacks a tutorial on stand-alone assembly programs. Now that we have three tutorials all of which deal almost exclusively with inline assembly, would an experienced gas programmer consider posting a "template" for a standalone assembly programme. What I would be keen learning would be things like: 1) How does one reserve space in a (stand-alone) assembly program 2) Does one have to declare (reserve) space for a stack? 3) What declarations come first, which later? and so on. I tried to learn these things by writing simple programs in c, and then looking at the .s file generated by gcc, but the patterns there are difficult to generalise. Once I have a template for an assembly language program (for gas), I could always look at the gas info and fill in the details. On going through (g)as.inf, it was difficult for me to spot even one complete runnable assembly program, only fragments of illustrative gas code. Of course, I am aware that (g)as.inf is not a tutorial and as such is not expected to be a document for learning "assembly"