pouët.net

A quick GCC question

category: general [glöplog]
 
Can i compile assembler in GCC. Ive heard somewhere that there where some switch for that?
If its true what is it?
assembly?
added on the 2008-12-29 18:41:05 by the_Ye-Ti the_Ye-Ti
you can just pass .s (assembler) files in the same way as .c or .cpp files to the gcc front-end.

If you want gcc-style inline assembler there are lots of tutorials on the net.

added on the 2008-12-29 18:43:26 by torus torus
Thanks a lot torus!
You can also pass the -S switch to gcc and it will output the generated assembler code from the C source instead of object code.
added on the 2008-12-29 21:16:50 by Joghurt Joghurt
Oh, and -fasm=intel might help you, as AT&T syntax is weird for people who are used to intel syntax (like me)
added on the 2008-12-29 21:17:27 by Joghurt Joghurt

login