NASM - The Netwide Assembler

NASM Forum => Programming with NASM => Topic started by: adanisch on October 24, 2019, 08:03:30 PM

Title: Migrate Gas ASM to NASM Directly
Post by: adanisch on October 24, 2019, 08:03:30 PM
I couldn't find anything that moved Gas ASM to NASM directly. The closest was Agner's objconv. Is there a reason why gcc doesn't have a nasm output option?

So I whipped up a quick Gas ASM to NASM translator, it's far from done but it's a start. It works for simple programs. I will keep improving it.

http://scriptsandoneliners.blogspot.com/2019/10/g2nasm-gas-asm-to-nasm.html (http://scriptsandoneliners.blogspot.com/2019/10/g2nasm-gas-asm-to-nasm.html)
https://github.com/AdamDanischewski/g2nasm (https://github.com/AdamDanischewski/g2nasm)
Title: Re: Migrate MASM to NASM Directly
Post by: Frank Kotler on October 24, 2019, 08:25:39 PM
  Cool. Thank you!

Best,
Frank

Title: Re: Migrate Gas ASM to NASM Directly
Post by: adanisch on October 24, 2019, 10:47:16 PM
NP - it's not complete, but it's a start!  ;)
Pull requests are invited.