This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: GCC floating point usage


>>>>> Stefan Bylund writes:

Stefan> In GCC 3.2 for powerpc-eabi, when enabling hardware floating point, GCC will
Stefan> generate floating point instructions not only for C/C++ float/double operations
Stefan> but also internally for optimizing non-floating point 64-bit data transfers etc.

Stefan> Is it possible to somehow instruct GCC to only generate floating point
Stefan> instructions for C/C++ float/double operations and not for internal non-floating
Stefan> point optimizations etc?

	If you do not want to use the FPU, then invoke the compiler with
the -msoft-float PowerPC option.  If the FPRs are present and it is
efficient to use them, the compiler will use them.

David


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]