This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: exception handling poll
- To: joel at OARcorp dot com, rth at cygnus dot com
- Subject: Re: exception handling poll
- From: meissner at cygnus dot com
- Date: Sat, 18 Oct 1997 10:37:11 -0400 (EDT)
- Cc: egcs at cygnus dot com
| 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).