2 ms·
Are there compelling advantages to using one of the above rather than GNU 'as'? I ask out of ignorance rather to say there is not. But 'as' is well documented
by nkurz 12y ago
Are there compelling advantages to using one of the above rather than GNU 'as'? I ask out of ignorance rather to say there is not. But 'as' is well documented, and if you access it as 'gcc -c foo.S' (with a capital S) it gets run through the C preprocessor first for macros and definitions. And if you are distributing Mac/Unix/Linux source, you can generally presume it or something compatible is preinstalled.
One possible other tool to consider is 'terse': http://www.terse.com/howdoes.htm http://www.terse.com/howdoes.htm
It's got a lot of issues, and you probably don't want to actually use it. It's unmaintained, proprietary, DOS only, and according the website, still distributed on a 3.5" floppy. But the syntax has a lot of appealing things about it. You can't actually read the real manual without buying the product, but a short lived open source clone "nega" used a very similar one: http://webcache.googleusercontent.com/search?q=cache:7E6DdugNiWUJ:files.mpoli.fi/unpacked/software/programm/asm/asnip40c.zip/nega/nega.doc+&cd=6&hl=en&ct=clnk&gl=us http://webcache.googleusercontent.com/search?q=cache:7E6Ddug...
- floody-berry 12y agoRelying on as won't work with Visual Studio It's easier to update an external assembler than the system assembler. A lot of distros don't ship with updated binutils so you can't reliably compile for newer CPU extensions on them. Earlier versions of clang's integrated assembler (which clang uses instead of as) weren't fully compatible with as, e.g. no .intel_syntax support. Different operating systems can have subtly different behavior, e.g. the ancient as that ships with OS X uses $name for macro parameters while most? other systems use \name. I think gcc on OS X is intentionally forgotten so everyone will switch to clang. Cross platform x86 asm is a real headache no matter what. NASM/Yasm/fasm just make it less of one.