Compile Optimisations for X64?

Asked by nullack

When using Ubuntu x64, what compile time options are used in Ubuntu binaries?

For example, gcc with -O2?

What about CPU extensions, such as SSE3, 3DNOWEXT and so on?

How is the x64 compile different to the x32 one (not including the obvious bit length), such as, the x64 using more current processor options? For example, is it still compiex for 386?

Is there any performance benefit to recompiling default Ubuntu packages with say the GCC option of NATIVE. Where GCC optimises for the arhcitecture in use.

Many thanks.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bruce Cowan (bruce89-deactivatedaccount) said :
#1

AFAIK, no extensions are taken for granted on i386, but on x86_64, SSE and SSE2 are required.

You're not going to see huge speed increases with any compiler flags unless it is a intensive process (like FFTs or DCTs etc.).

Can you help with this problem?

Provide an answer of your own, or ask nullack for more information if necessary.

To post a message you must log in.