I am learning how to use assembly language (on Raspberry Pi incidentally) and I am wondering what the difference is between using gcc
and as
to do the compiling.
So far, the differences I have noticed are:
- I should do the extra linking step with
as
. - On the Raspberry Pi,
as
seems to recognize the architecture better thangcc
by itself. I have to tellgcc
the architecture before I can use instructions like integer division. - With
gcc
I have easy access to the C standard library functions. I assume this is possible usingas
but I haven't figured it out yet.
I would like to stick to a particular compiler. What other differences should I be aware of. Is there an advantage / disadvantage to using either?