On Saturday 29 March 2008 00:56, Alexandra (Sasha) Fedorova wrote:
> I was wondering anyone knows any details of the gcc port for Solaris/x86. 
> I am wondering, if I have an executable compiled with gcc for Linux and an 
> executable compiled with the same gcc (same version, same options) for 
> Solaris, how similar would those executables be? I understand that the 
> code running in shared libraries and system calls will be different, but 
> it seems that the rest (user-level) code should be the same, since it is 
> generated by essentially the same compiler. What do you think?

Code will be similar, but it will not be identical.
Even small changes in header files make gcc generate different assembly.

See:

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29950
--
vda

Reply via email to