This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc for Linux/x86 vs. Solaris/x86


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]