Compiler flags for building python

One of my colleagues has posted compiler flags for building python. The quick summary is that you can get about a 25+% performance gain from using crossfile optimisation, -xO4, and profile feedback.

Comments:

I explicitly had to take "-xipo=2" out, because otherwise Python wouldn't link (this was about eight months ago)!

If you are interested, I can reproduce the error and post it here. Compiler was Sun Studio 12 (without Sun Studio patches).

Posted by UX-admin on November 10, 2008 at 04:57 PM PST #

Thanks. If the error looked like this:

Undefined symbol first reference in the file

$XAbS.tok_get /tmp/ld_rAAA7zailM

Then it's probably missing the flag -xipo_archive=writeback

Regards,

Darryl.

Posted by Darryl Gove on November 12, 2008 at 10:27 AM PST #

Here is the coolstack makefile for python :
http://src.opensolaris.org/source/xref/webstack/webstack/branches/CoolStackDev/src/python/python_Makefile.csk

Posted by Basant Kukreja on November 13, 2008 at 04:48 AM PST #

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