c/c++ · linux · power

power: compilers very-quick reference

xlC Community Edition

Get it now!

Architecture

Generate instructions and optimize for POWER8


-qarch=pwr8

-qtune-pwr8

Optimization Levels

Disable all options


-O0
-qnoopt

Optimization Levels


-O
-O2
-O3
-O4
-qnoopt

Commercial code: -O3 or -O3 -qipa
Technical computing: -O3 or -O3 -qhot

Extra Optimizations

Feedback Directed Optimization
-qpdf1
-qpdf2
Interprocedural Optimizations
-qipa

Loop Optimizations
-qhot

Advance Toolchain

Get it now !

Architecture

Generate instructions and optimize for POWER8


-mcpu=power8

-mtune=power8

Optimization Levels

Disable all options


-O0 

Optimization Levels


-O or -O1
-O2
-O3
-Ofast

Commercial code: -O3 -mcpu=power8 -mtune=power8
Technical computing: -O3 -mcpu=power8 -mtune=power8 -funroll-loops

Extra Optimizations


Feedback Directed Optimization
-fprofile-generate
-fprofile-use

Interprocedural Optimizations
-flto

Loop Optimizations
-fpeel-loops
-funroll-loops

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s