POV-Ray : Newsgroups : povray.unix : Build optimisation flags? : gcc 2.95.3 vs. 3.2 [ Was: Re: Build optimisation flags?] Server Time
28 Jul 2024 08:30:37 EDT (-0400)
  gcc 2.95.3 vs. 3.2 [ Was: Re: Build optimisation flags?]  
From: Rob Hoopman
Date: 23 Aug 2002 10:19:14
Message: <3D6660A7.4010007@tuna.nl>
Warp wrote:
> Roz <Rzl### [at] netscapenet> wrote:
> 
>>CXXFLAGS = -g
> 
> 
>   Don't use -g.
>   That flag is for debugging purposes only. Since you are compiling a final
> version with extreme optimizations, -g is not only useless and cause the
> binary to be uselessly large (until stripped), but it even *might* contradict
> with some optimizations, thus resulting in a slightly less optimized binary
> (perhaps this is not the case, but it could be).
> 

NetBSD does not have a gcc 3+ packages yet but I compiled it from source 
using the compiler glags suggested by you and Roz.

This turns out to give a major speed gain, I've attached some data in 
case anyone is interested.

Rob


Post a reply to this message


Attachments:
Download 'us-ascii' (2 KB)

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.