Using GAS, any tutorials

mike mike@penbex.com.tw
Thu Oct 19 00:18:00 GMT 2000


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



More information about the crossgcc mailing list