Is there anyway to tell GNU as to generate Windows PE executable file from Linux? I know you can use Cygwin or MingW,but sometime I don't have access to windows machine.

share|improve this question
    
figured out.. GNU as only generate obj file, it is the linker that must be configure to generate Windows PE – technomage Mar 4 '12 at 17:11
    
Code generation is different too, because calling conventions (the "ABI") are different. – hirschhornsalz Mar 5 '12 at 7:05
up vote 1 down vote accepted

You need a toolchain targetting Windows and hosted on Linux.

Such things do exist, look at http://sourceforge.net/apps/trac/mingw-w64/wiki/download%20filename%20structure for intance. You will need something like `mingw-w64-bin_x86_64-linux*`` for a mingw targeting Win64 and hosted on Linux x86_64.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.