What I want is something like g++ where I can type:
compiler_name my_assembly_code.extention
…and have it compile my assembly code. It does not matter whether it’s 32 or 64 bit. Just needs to be for Windows.
Does anyone know of one that I can get that does this? I’m open to other suggestions as well, I just want to stay away from having to use MS Visual Studio for doing this.
(Almost) any normal distribution of g++ will/should include a copy of
gas, the GNU Assembler. Depending on the distribution you get, the command you use may beasorgas(and some include both).Unfortunately, at least the last time I tried it
gashad quite a few bugs. It works fine for code that’s generated by gcc/g++, but if you depart much from what it can/does produce, you can run into all sorts of problems. That, however, was some time ago, so these problems may have been fixed — I don’t know for sure.There are quite a few alternatives as well. NASM is probably the most widely used and gets updated (e.g., for new instruction sets) reasonably dependably.