Linked by Eugenia Loli-Queru on Tue 24th Oct 2006 04:33 UTC, submitted by mcsimpson
Permalink for comment 174890
To read all comments associated with this story, please click here.
To read all comments associated with this story, please click here.





Member since:
2006-04-30
Given the processor is the same, there'd be no difference whatsoever in the generated code between the two platforms.
So you could copy a g++ executable from Solaris to Windows and have it work! The API's for the 2 OS's are totally different. Simple things like register assignment (which is different) can dramatically change the compiler optimization choices, therefore the code produced is different.