Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Apr 2003 07:56:35 +0200
From:      Gianmarco Giovannelli <gmarco@scotty.masternet.it>
To:        Loren James Rittle <rittle@latour.rsch.comm.mot.com>
Cc:        hackers@freebsd.org
Subject:   Re: gcc iussue or ... ?
Message-ID:  <5.2.0.9.2.20030412074302.03957e48@194.184.65.7>
In-Reply-To: <200304120241.h3C2fQCc061882@latour.rsch.comm.mot.com>
References:  <5.2.0.9.2.20030411082040.02604e90@194.184.65.4>

next in thread | previous in thread | raw e-mail | index | archive | help
At 11/04/2003, you wrote:
>In article <5.2.0.9.2.20030411082040.02604e90@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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.2.0.9.2.20030412074302.03957e48>