From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 11 22:55:05 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5587337B401 for ; Fri, 11 Apr 2003 22:55:05 -0700 (PDT) Received: from cecov.masternet.it (cecov.masternet.it [194.184.65.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 436A143F85 for ; Fri, 11 Apr 2003 22:55:04 -0700 (PDT) (envelope-from gmarco@scotty.masternet.it) Received: from usul.scotty.masternet.it (freebsd.giovannelli.com [194.184.65.139]) by cecov.masternet.it (8.12.9/8.12.9) with ESMTP id h3C5tC0Y063909; Sat, 12 Apr 2003 07:55:13 +0200 (CEST) (envelope-from gmarco@scotty.masternet.it) Message-Id: <5.2.0.9.2.20030412074302.03957e48@194.184.65.7> X-Sender: gmarco@194.184.65.7 (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Sat, 12 Apr 2003 07:56:35 +0200 To: Loren James Rittle From: Gianmarco Giovannelli In-Reply-To: <200304120241.h3C2fQCc061882@latour.rsch.comm.mot.com> References: <5.2.0.9.2.20030411082040.02604e90@194.184.65.4> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed cc: hackers@freebsd.org Subject: Re: gcc iussue or ... ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Apr 2003 05:55:05 -0000 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