View Single Post
Old Jun 29th, 2005, 4:14 PM   #1
conbrio
Newbie
 
Join Date: Apr 2005
Posts: 10
Rep Power: 0 conbrio is on a distinguished road
A stupid compiler question.

As I understand it, compilers generally generate code in the following manner: source code>object file(s)(which might be linked)>final executable in machine code.

Now, providing that a source file is compiled for a certain CPU architecture (eg, x86) why shouldn't a file compiled on Windows work on a Linux system, and vise versa?
conbrio is offline   Reply With Quote