exception handling poll
meissner@cygnus.com
meissner@cygnus.com
Sat Oct 18 07:37:00 GMT 1997
| On Fri, Oct 17, 1997 at 12:43:32PM -0500, Joel Sherrill wrote:
| > > | The PPC problem is probably more difficult to address. The code generate
| > > | for vfprintf saves an FP regsiter in the prolog because of the path for FP
| > > | numbers. So even if you do not print an FP number, you still end up
| > > | touching the FPU.
|
| Seems to me the way to handle this is to call out to another function
| to do the actual fp i/o. Since we're talking about vfprintf, an interface
| as simple as
|
| void do_fp_printf(FILE *f, int width, int prec, char fmt, va_list *arg)
|
| should cover all the cases. It is also now easy to ifdef it out, which
| could be nice for the embedded folks.
Also, if you are using a newlib based printf, note there are the functions:
iprintf
fiprintf
siprintf
viprintf
vfiprintf
vsiprintf
that do not include any floating point support (which also cuts down on the
size).
More information about the Gcc
mailing list