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


It really depends on your target.
(The different target has the different assembly mnemonic.)
I suggest you read the .s file generated by gcc.
{
In my case:   m68k-coff-gcc -S foo.c
and take a look at 'foo.s'.
then use the 'asm' function, like
 asm ("move.l %a0, %d0"),
what ever you've see in the dot s file.
}
BTW, there is a doc about target as x86.
http://www.castle.net/~avly/djasm.html

----- Original Message -----
From: "robert floyd" <robertfloyd1@home.com>
To: <crossgcc@sources.redhat.com>
Sent: Thursday, October 19, 2000 12:30 PM
Subject: Using GAS, any tutorials


> Is there any tutorial, examples or manuals available that explain the
steps
> on how to write a program in assembly for an embedded target?  I read the
> GAS manual, provides lots of info on COMMAND LINE options, etc. but does
not
> even begin to tell me where to start.
>
>
>
> ------
> Want more information?  See the CrossGCC FAQ,
http://www.objsw.com/CrossGCC/
> Want to unsubscribe? Send a note to
crossgcc-unsubscribe@sourceware.cygnus.com
>
>


------
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]