Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

In the 2.6.35 kernel I have a choice of:

  1. Operon/Athlon64/Hammer/K8
  2. Generic-x86-64

The first option seems best but I'd like confirmation. I have no idea whether there is a specific -mcpu / -march flag for this processor. Are there any other tricks to optimise software for this processor.

I run Gentoo if that makes any difference.

UPDATE: I have found answer 2 from AMD themselves:

share|improve this question
can you use -march=native here? – rogerdpack Sep 27 '13 at 22:47

1 Answer 1

up vote 0 down vote accepted

I use CFLAGS="-march=amdfam10 -O2 -pipe" (amd64,gentoo-source 2.6.34-r6,gcc 4.4.3-r2). Everything is stable and safe.

share|improve this answer
Ever tried -03 ? It's listed in the AMD GCC Quick Reference as "Aggresive Optimisation" so I'm kinda tempted. – SpliFF Sep 29 '10 at 10:50
No(simple about -O3 and optimize gcc I try clang, but i have many problem. – bindbn Sep 29 '10 at 12:40

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.