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 ...
- 05-10-2007 #1Just Joined!
- Join Date
- May 2007
- Posts
- 2
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..
- 05-10-2007 #2Linux 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


Reply With Quote