This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: GCC floating point usage
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Stefan Bylund <steby at enea dot se>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 14 Oct 2002 12:37:14 -0400
- Subject: 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