POV-Ray : Newsgroups : povray.unix : Compile for given CPU : Re: Compile for given CPU Server Time
3 Jul 2024 05:06:35 EDT (-0400)
  Re: Compile for given CPU  
From: Shalom Naumann
Date: 17 Jun 2004 19:18:44
Message: <40d226d4$1@news.povray.org>
Ross wrote:
> "Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote in message
> news:Xns9509BBE4C7718raf256com@203.29.75.35...
> 
>>Hi,
>>how can I recompile PovRay for optimal speed on my machine?
>>
>>I'm using an athlon (2.6 GHz).
>>
>>Can I pass some heavy-optimize options to compiler etc?
>>
>>-- 
>>http://www.raf256.com/3d/
>>Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
>>Computer Graphics
> 
> 
> to start, you could try (assuming gcc):
> 
> -O3 -DCPU=athlon -march=athlon
> 
> for more info, check the man or info pages for gcc. they have an
> "optimization" section. check out "-finline-functions" and "-funroll-loops"
> maybe more.
> 
> 
> 
Look into the environment variable CFLAGS. I set it to -arch=pentium4 
-mcpu=pentium4 -O3. I compile most of my software and it really goes 
faster with optimization.

Shalom


Post a reply to this message

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