Find the answer to your Linux question:
Results 1 to 2 of 2
Dear all, Why do i need to recompile the code? Where as the X86 the architecture is same?? The final instruction are also going to be same right??? I assume ...
  1. #1
    Just Joined!
    Join Date
    May 2007
    Posts
    2

    Question why linux executable(a.out) doesnt run on windows(.exe) directly?

    Dear all,

    Why do i need to recompile the code?
    Where as the X86 the architecture is same??
    The final instruction are also going to be same right???
    I assume there must be some difference between windows and linux executable handling in the sense of program loading (loader) but can some expert put some more highlight on this Please..

    Thanks
    Sirius..

  2. #2
    Linux User
    Join Date
    Oct 2004
    Location
    /dev/random
    Posts
    404
    Along with the loading mechanisms, the overall process handling mechanisms of both the OSs are different - correspondingly, the executable file formats used by both OSs are different.

    Windows uses Win32PE format while all modern linux kernels use ELF format. There is decreasing support in linux for the infamous a.out format as well.

    HTH
    The Unforgiven
    Registered Linux User #358564

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...