Sun Studio compiler options – a beginners guide
Over at Sun’s HPC blog, Thierry Manfe has a nice blog up looking at compiler optimisation flags in the Sun Studio compiler. I try and use Sun Studio when building stuff on Solaris, because not only does it aid performance, but if you know what you’re doing you can use it to really optimise for your processor.
And that’s the problem – there are a whole raft of command line options, and if you’re just starting out you’re presented with a dizzying array of possible optimisations.
Theirry’s post discusses some of the obvious ‘quick win’s you can make, as well as covering their potential downsides. It covers such gems as -fast:
If you are in a rush, you can use the -fast option. What it really does is triggering a set of other options for maximum runtime performance.
Head on over to this page and have a read through the full post – it’s very handy and has some useful tips on building some really optimised code.