In searching for information for converting MASM to Gas I have found that, as I understand it, most assembly work is actually done on NASM, and indeed this assembler has been available as part of he default XCode installation for a long time. Gas, it seems, is primarily designed as an assembler for GCC rather than as a stand-alone assembler. NASM is also closer to MASM than Gas.
MASM assembler still needs to be converted to NASM. I found a Perl program Nomyso that will do a fair bit of he work. It looks far promising than intel2gas which proved to be very disappointing.
Problems using Nomyso:
- Handling of structs seems wrong
- Included files are copied into the resulting file rather than being converted to %include.
Some useful links:
- A good survey of Assemblers
- Apple NASM Man Page
- NASM Documentation
- Writing A Useful Program With NASM
For the moment I am going to put the business of getting jcalg to assemble under OSX/XCode to one side as I can work around it.
No comments:
Post a Comment