Author Topic: Migrate Gas ASM to NASM Directly  (Read 140 times)

Offline adanisch

  • Jr. Member
  • *
  • Posts: 4
Migrate Gas ASM to NASM Directly
« 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
https://github.com/AdamDanischewski/g2nasm
« Last Edit: October 26, 2019, 12:15:32 AM by adanisch »

Offline Frank Kotler

  • NASM Developer
  • Hero Member
  • *****
  • Posts: 2381
  • Country: us
Re: Migrate MASM to NASM Directly
« Reply #1 on: October 24, 2019, 08:25:39 PM »
  Cool. Thank you!

Best,
Frank


Offline adanisch

  • Jr. Member
  • *
  • Posts: 4
Re: Migrate Gas ASM to NASM Directly
« Reply #2 on: October 24, 2019, 10:47:16 PM »
NP - it's not complete, but it's a start!  ;)
Pull requests are invited.
« Last Edit: October 26, 2019, 12:16:00 AM by adanisch »