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?
If its true what is it?
assembly?
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.
If you want gcc-style inline assembler there are lots of tutorials on the net.
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.
Oh, and -fasm=intel might help you, as AT&T syntax is weird for people who are used to intel syntax (like me)