Creating .exe file with gcc in Linux, using Assembly
Hi, I am in an Assembly language class this semester. The teacher wants us to submit the source as well as the .exe file. Now is it possible to produce a .exe file in Linux, even though it would not be able to use it?
I don't know why there would need to be a cross compiler, I'm already using assembly. And, if there is no other way to produce a .exe file w/o a cross compiler, then how could I incorporate it into a makefile? I've never made a makefile, but I have simple instructions. Thanks, David |
I assume you are going to run the .exe file under DOS or Windows. AFAIK, there is no GCC cross compiler for DOS targets. Under Linux, there is a cross assembler called NASM, which I'm pretty sure can generate DOS/Win object code (may require a DOS friendly linker).
--- rod. |
yes, whenever I compiled back on windows heres what I'd do
For 32-bit: Code:
%nasm32 -f coff foo.asm Code:
%nasm16 -f obj foo.asm |
Take a look at mingw32. This is a GCC port for compiling Windows programs.
ta0kira |
All times are GMT -5. The time now is 03:14 PM. |