Darryl Gove's blog

Monday Oct 27, 2008

x86 compiler flags

This AMD document summarises the optimisation flags available for many x86 compilers (Sun Studio, PGI, Intel etc.). It's about a year old, but it looks ok for Sun Studio. However it talks about -xcrossfile which is ancient history - use -xipo instead!

Comments:

Page 30:
"The -xcrossfile flag enables optimization across all source files.
This flag must be combined with -xO4 or -xO5 to be effective.
The -xipo=2 flag enable interprocedural optimization (this option is
preferred over -xcrossfile, which was pre-ipo)."

Posted by Muncho Munchojan on October 28, 2008 at 01:10 AM PDT #

Exactly.

However, the restriction on the -xcrossfile flag is severe. All the files must be presented for compilation at the same time.

On the other hand -xipo enables you to add the option like any other compiler flag, to both the initial compile and the final link.

There's no reason to use -xcrossfile instead of -xipo. So I have long since given up even mentioning the flag.

Darryl.

Posted by Darryl Gove on October 28, 2008 at 11:02 AM PDT #

Post a Comment:
Comments are closed for this entry.

Calendar

Search this blog

About

Solaris Application Programming

Book resources

The Developer's Edge

Book resources

OpenSPARC Internals

Book resources

Recent entries

Custom search

Tag cloud

book cmt communityone compiler cooltools cpu2006 dtrace gcc libraries linker multithreading openmp opensolaris opensparc optimisation optimization parallelisation parallelization performance performanceanalyzer programming secondlife solaris solarisapplicationprogramming sparc spot sunstudio ultrasparc ultrasparct2 x86

Links

Webcasts

Articles

Presentations

Interesting docs

Navigation

Referers

Feeds