This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more infromation.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Using GAS, any tutorials


Robert Floyd wrote:
> 
> I understand the difference in assembly mnemonic and I have written numerous
> assembly language programs for consumer products.  I am lost however with GNU in
> that there is no documentation available which tells one how to set up directives
> for the assembler.  The tools I have used before always tell you how to begin your
> 
> program, what directives need to be there and why, and additional "configuration"
> info to embed into the program that really has nothing to do with the actual code
> itself.  Such as all *.s files begin with .file "filename", (do they? The examples
> 
> I see do..), immediately after file you put .align "some number", (do you have to
> put it there? can I put it later in the program?), every file ends with .end (does
> 
> it?  the example I have does and what is this .end anyway, GAS does not list .end
> )  These are the types of questions that I have and I don't find any info
> available for these types of questions.  Do I need to write one after basically 6
> months of trial and error.  I understand the principle that "unless it's hard, it
> can't be good" Unix mentality, but geezzz!  We can do better in my own humble
> opinion.
> 
> R.Floyd
> 

Have you tried "info as" in the GNU documentation?  If you don't have
it, I'm sure it is available on some linux website.  This talks about
the basics of gas and the supported directives.  It gives very little on
machine dependent instruction syntax.

Art

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]