gcc iussue or ... ?

Gianmarco Giovannelli gmarco at scotty.masternet.it
Fri Apr 11 22:55:05 PDT 2003


At 11/04/2003, you wrote:
>In article <5.2.0.9.2.20030411082040.02604e90 at 194.184.65.4> you write:
> > The problem is very simple.  I mantain a unix/linux port of a UO
> > emulator which works really fine natively under FreeBSD.
>
>Thank you for this report.  Please consider this question: What
>versions of g++/binutils were used on the various platforms?  Please
>know this: There is a per-platform and per-binutils version influence
>on mapping of program data/BSS to ELF section.  g++ 3.3 with recent
>binutils on FreeBSD *will* allocate data as you saw on debian 3.0
>(with a compiler version you didn't report).
I used a :
linux Debian 3.0, gcc 2.95.4 20011002 (Debian prerelease)
I don't know which version of binutils, but they are the standard one 
shipped with this release ...

>Created with g++ 3.3 (prerelease) with binutils 2.13.2.1:
>
>; size lonewolf
>    text    data     bss     dec     hex filename
>1792215   49768 21850592        23692575        169851f lonewolf
>; ls -l lonewolf
>-rwxr-xr-x  1 rittle  wheel  1992568 Apr 11 20:18 lonewolf*
>
>Apparently, 3.2.X
>
>Created with g++ 3.2.2 built from FreeBSD ports with FreeBSD 4.7
>system binuilts 2.12.1:
>
>; size lonewolf
>    text    data     bss     dec     hex filename
>1358349 17543167        4539088 23440604        165acdc lonewolf
>; ls -l lonewolf
>-rwxr-xr-x  1 rittle  wheel  21161728 Apr 11 20:35 lonewolf*

Yes you get exactly the same situation of me.

So at the end  of the game. It is a problem of the compiler rather than the 
OS/software ?
May we try to fix (the program) with any kind of 
optimization/configuration/modifications ? :-)

Thanks very much for you reply.


Best Regards,
Gianmarco Giovannelli ,  "Unix expert since yesterday"
http://www.gufi.org/~gmarco




More information about the freebsd-hackers mailing list