LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   Compile GCC to NASM compatible ASM. (https://www.linuxquestions.org/questions/programming-9/compile-gcc-to-nasm-compatible-asm-922961/)

Zssfssz 01-09-2012 09:11 PM

Compile GCC to NASM compatible ASM.
 
Is there an easy way to make the assembler output (-S) be compatible with NASM?
Is there a free (preferably in the ubuntu/debian repositories) converter if the above is no?

kbp 01-09-2012 10:36 PM

intel2gas -g ? .. not that I've tried it

Zssfssz 01-09-2012 11:28 PM

Umm, What/How do I do that?

kbp 01-10-2012 03:11 AM

Output from gcc -S is gas (GNU Assembler) format, to convert it to nasm format you can try http://www.niksula.hut.fi/~mtiihone/intel2gas/


All times are GMT -5. The time now is 06:13 PM.