HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- Operating System - Tru64 Unix
- >
- Re: cc -spike option
Operating System - Tru64 Unix
1829582
Members
1069
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
back
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2004 09:07 PM
03-07-2004 09:07 PM
cc -spike option
Hi,
this is just a concept question. Is there any difference beween the '-spike' option and the '-O2' option when compiling C code using 'cc'.
If I understand it correctly, spike will optimize better then 'O' but O is a more generic type of optimization and thus if you have to deploy your program on a wide variaty of Tru64 systems (different os version, harware),you are better of using -O then spike
With kind regards
Kris
this is just a concept question. Is there any difference beween the '-spike' option and the '-O2' option when compiling C code using 'cc'.
If I understand it correctly, spike will optimize better then 'O' but O is a more generic type of optimization and thus if you have to deploy your program on a wide variaty of Tru64 systems (different os version, harware),you are better of using -O then spike
With kind regards
Kris
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 02:22 AM
03-08-2004 02:22 AM
Re: cc -spike option
It is indeed a concept question.
The -o familiy of optimization levels and -spike independend/complementary.
And they are different still from the -arch and -tune directives which bring in the cpu/system dependencies you hint to.
The -o switch is your basic optimization.
Always recommended, only catch is that it tends to bring out programming errors/sloppiness more clearly and may be a little harder to debug.
The -spike is part of an 'approach' involving feedback. You had to compile first, make a sample run collecting feedback, re-compile with that feedback to allow the compiler to know for example which branches are more likely to be taken.
Also recommended as it can gain 3% - 20% of CPU time. It's catch is that you need more development work to get that feedback applied. Also, some folks worry themself to death whether they collected feedback from agood run or not. Don't worry too much about that. Any feedback will likely achieve 80% of the potential gain of this option.
So while it is extra nice to collect feedback over a true production run, Don't let that stop you if that is hard to get and just use for example a regression test as feedback generator.
hth,
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2004 03:00 AM
03-08-2004 03:00 AM
Re: cc -spike option
Thanks for the info!
Kd
Kd
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP