POV-Ray : Newsgroups : povray.unix : Compile for given CPU : Re: Compile for given CPU Server Time
3 Jul 2024 04:38:26 EDT (-0400)
  Re: Compile for given CPU  
From: Ross
Date: 15 Jun 2004 13:08:00
Message: <40cf2cf0@news.povray.org>
"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.


Post a reply to this message

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