public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: meissner@cygnus.com
To: joel@OARcorp.com, rth@cygnus.com
Cc: egcs@cygnus.com
Subject: Re: exception handling poll
Date: Sat, 18 Oct 1997 07:37:00 -0000	[thread overview]
Message-ID: <199710181437.KAA25290@tweedledumb.cygnus.com> (raw)

| 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).

             reply	other threads:[~1997-10-18  7:37 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-18  7:37 meissner [this message]
1997-10-18  8:53 ` Joel Sherrill
  -- strict thread matches above, loose matches on Subject: below --
1997-10-20  0:24 Christian Iseli
1997-10-19  8:27 meissner
1997-10-17 11:46 meissner
1997-10-17 14:36 ` Joel Sherrill
1997-10-17 20:51   ` Richard Henderson
1997-10-18  8:53     ` Joel Sherrill
1997-10-17 20:51   ` David Edelsohn
1997-10-18  8:53     ` Joel Sherrill
1997-10-16 20:28 meissner
1997-10-17  2:51 ` Robin Kirkham
1997-10-17  5:58   ` Joel Sherrill
1997-10-17 15:05 ` Joe Buck
1997-10-26 19:34   ` Robin Kirkham
1997-10-16 15:19 meissner
1997-10-16 15:19 meissner
1997-10-16 15:19 ` Richard Henderson
1997-10-17  7:08 ` Horst von Brand
1997-10-17 12:50   ` Joe Buck
1997-10-17 13:22   ` Richard Henderson
1997-10-20  6:46     ` Horst von Brand
1997-10-16  8:31 Richard Henderson
1997-10-16 15:19 ` Joern Rennecke
1997-10-16 15:19   ` Richard Henderson
1997-10-16 15:19 ` Joe Buck
1997-10-16 23:09 ` Oleg Krivosheev
1997-10-17 14:36   ` Stephen Williams
1997-10-17 20:51     ` Oleg Krivosheev
1997-10-17  6:41 ` John Carr
1997-10-17 15:05   ` Jeffrey A Law
1997-10-17 15:05   ` Joe Buck
1997-10-17 14:36     ` Richard Henderson
1997-10-17 19:44     ` John Carr
1997-10-19 19:40       ` Per Bothner
1997-10-20  5:45         ` John Carr

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=199710181437.KAA25290@tweedledumb.cygnus.com \
    --to=meissner@cygnus.com \
    --cc=egcs@cygnus.com \
    --cc=joel@OARcorp.com \
    --cc=rth@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).