Skip site navigation (1)Skip section navigation (2)
Date:      Mon,  4 Oct 2004 14:55:45 -0400
From:      Kenneth Culver <culverk@sweetdreamsracing.biz>
To:        regi@inf.ufrgs.br
Cc:        questions@FreeBSD.org
Subject:   Re: C compiler
Message-ID:  <20041004145545.zcoccwc4cksgocow@www.sweetdreamsracing.biz>
In-Reply-To: <1096915733.41619b153c86a@webmail.inf.ufrgs.br>
References:  <1096915733.41619b153c86a@webmail.inf.ufrgs.br>

next in thread | previous in thread | raw e-mail | index | archive | help
Quoting regi@inf.ufrgs.br:

> Hello,
>
> I=B4ve installed FreeBSD 5.2.1 in my PC machine. I compiled my own
> programs and started to running them. For my surprise, I checked that
> FreeBSD programs spent almost 50% more time than the same program compiled
> to linux. I checked several compile options, but it did not have good=20
> results.
>
> The compiler in my FreeBSD is gcc3.3.3. Are there someone that could
> help me ??
>
> Thanks,
> Regi
>
>
> I would like
>
There are a lot of things that could be happening, and I doubt that the gcc
version has anything to do with this.

1) did you recompile your kernel without debugging options? I don't=20
know if the
default kernel comes with them turned off. Also, your malloc.conf may not be
set up for speed (may have debugging options still).

2) You may want to try a later version of FreeBSD, for example... wait for 5=
.3
to come out. I'm using 5.3-BETA6 right now, and without doing any testing to
get actual numbers, it "feels" a lot faster.

Ken



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