On Tue, Jul 26, 2011 at 5:01 PM, Mick <michaelkintz...@gmail.com> wrote: > On Tuesday 26 Jul 2011 20:02:05 Paul Hartman wrote: >> On Tue, Jul 26, 2011 at 3:36 PM, Alokat <mail...@alokat.org> wrote: >> > I'm wondering what kind of cpu-type I should use? >> >> Hi, >> >> I think, in your case, core2 is the correct one. >> >> If you run this command: >> gcc -Q --help=target -march=native >> >> gcc will tell you what it thinks are the best options for your CPU. > > Thanks for this - I better make a note of it! ;-) > > Does this mean that I did not need to have all these flags specified, because > they're already included?
Not quite; that command specifically shows you the options that would be used if you were using -march=native. Since you're not using native, change it to: gcc -Q --help=target -march=core2 And that will show the defaults when you're using core2 as the arch. (On my own system, a side-by-side comparison of native vs core2 shows a lot of differences) If native shows something as "enabled" but core2 doesn't, it should be safe to add that option to your cflags because it's likely your CPU can handle it just fine.