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 27, 2008 at 06:10 PM 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 04:02 AM PDT #

Post a Comment:
Comments are closed for this entry.
About

Darryl Gove is a senior engineer in the Solaris Studio team, working on optimising applications and benchmarks for current and future processors. He is also the author of the books:
Multicore Application Programming
Solaris Application Programming
The Developer's Edge

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
5
6
8
9
10
12
13
14
15
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today
Bookmarks
The Developer's Edge
Solaris Application Programming
Publications
Webcasts
Presentations
OpenSPARC Book
Multicore Application Programming
Docs