[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: amd64 arch and optimization flags?



Tollef Fog Heen <tfheen <at> err.no> writes:

> ]] Jaromír Mikeš 
> 
> > Aha ... so these default flags are added by compiler and they are not
> > controlled by debian tools at all?
> > Can I see somewhere default flags for different archs?
> 
> run gcc -dumpspecs on the different platforms and you can see them.

No, that won’t display them either.

gcc/gcc/config/i386/i386.[ch] and …/linux*.h would have them, for example
(shortened):

  if (TARGET_64BIT)
    {
      /* Enable by default the SSE and MMX builtins.  */
      target_flags |= (MASK_SSE2 | MASK_SSE | MASK_MMX |
MASK_128BIT_LONG_DOUBLE);
      ix86_fpmath = FPMATH_SSE;
     }
  else
    {
      ix86_fpmath = FPMATH_387;
    }

bye,
//mirabilos


Reply to: