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,
asseems to recognize the architecture better thangccby itself. I have to tellgccthe architecture before I can use instructions like integer division. - With
gccI have easy access to the C standard library functions. I assume this is possible usingasbut 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?