public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: increase in object code size
@ 1997-09-24  9:46 Mike Stump
  0 siblings, 0 replies; 26+ messages in thread
From: Mike Stump @ 1997-09-24  9:46 UTC (permalink / raw)
  To: egcs

> From: Joe Buck <jbuck@synopsys.com>
> To: mrs@wrs.com (Mike Stump)
> Date: Tue, 23 Sep 97 21:28:54 PDT

> > There is already code (can_throw (insn)) in there that know that can
> > throw and what can't.  If people use it, then both camps come out
> > winning.

> I don't understand.  How will this permit safe throws from async signals?

Let me start off by saying that it isn't safe.  I think we all know
this.  The language standard doesn't permit code to rely upon it.
There is a reason why that it.  On some platforms, even though it
appears to work, sometimes it won't, so in yet another sense it isn't
safe.

It may be necessary on some platforms to extend the compiler out to
deal properly with dummy signal frames and the like for much of
anything to work.  On some platforms this isn't necessary.  The fact
remains that some people do want this, and are doing it today.  They
aren't looking for guarantees, what they are looking for for a way out
when they have already lost, a last chance at surviving.

^ permalink raw reply	[flat|nested] 26+ messages in thread
* Re: increase in object code size
@ 1997-09-23 19:09 Mike Stump
  1997-09-23 21:29 ` Joe Buck
  0 siblings, 1 reply; 26+ messages in thread
From: Mike Stump @ 1997-09-23 19:09 UTC (permalink / raw)
  To: jfc, rth; +Cc: egcs, jbuck

> From: Richard Henderson <rth@cygnus.com>
> To: jfc@mit.edu (John Carr)
> Date: Tue, 23 Sep 1997 17:01:54 -0700 (PDT)

> > The first optimization which comes to mind: an exception table entry
> > which does not apply to an instruction which can throw an exception
> > should be eliminated.  In GNU C and C++ (and, I think, GNU Ada) only
> > function calls throw exceptions.  That means there needs to be at most
> > one table entry per function call.

> No, because you will want to support throwing exceptions from 
> signal handlers.  This is most useful from synchronous signals
> such as SEGV and FPE, but I could also see uses for ALRM.

There is already code (can_throw (insn)) in there that know that can
throw and what can't.  If people use it, then both camps come out
winning.

^ permalink raw reply	[flat|nested] 26+ messages in thread
[parent not found: <199709232337.TAA00381@pincoya.inf.utfsm.cl>]
[parent not found: <199709231643.KAA27118@harmony.village.org>]
* increase in object code size
@ 1997-09-23  7:21 Thomas Koenig
  1997-09-23  9:32 ` Joe Buck
  0 siblings, 1 reply; 26+ messages in thread
From: Thomas Koenig @ 1997-09-23  7:21 UTC (permalink / raw)
  To: egcs

I recently compiled the 2.0.31-pre10 Linux i386 kernel egcs 970917, and
I noted an increase in object code size against compliation with gcc
2.7.2.1

For example, ~linux/drivers/net/3c59x.o grew from 20344 to 26308 bytes,
and ~linux/net/ipv4.o from 126775 to 179663 bytes.  Compile options were
standard for Linux, i.e. "-O2 -fomit-frame-pointer -fno-strength-reduce
-pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2".

Any idea what's causing this?  Are the options wrong?
-- 
Thomas Koenig, Thomas.Koenig@ciw.uni-karlsruhe.de, ig25@dkauni2.bitnet.
The joy of engineering is to find a straight line on a double
logarithmic diagram.

^ permalink raw reply	[flat|nested] 26+ messages in thread

end of thread, other threads:[~1997-09-28 14:43 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1997-09-24  9:46 increase in object code size Mike Stump
  -- strict thread matches above, loose matches on Subject: below --
1997-09-23 19:09 Mike Stump
1997-09-23 21:29 ` Joe Buck
     [not found] <199709232337.TAA00381@pincoya.inf.utfsm.cl>
1997-09-23 18:21 ` Jason Merrill
1997-09-24  7:13   ` Horst von Brand
     [not found] <199709231643.KAA27118@harmony.village.org>
1997-09-23 10:05 ` Thomas Koenig
1997-09-23  7:21 Thomas Koenig
1997-09-23  9:32 ` Joe Buck
1997-09-23 10:03   ` John Carr
1997-09-23 10:16     ` Joe Buck
     [not found]     ` <199709231716.KAA13154.cygnus.egcs@atrus.synopsys.com>
1997-09-23 10:34       ` Jason Merrill
1997-09-23 10:38     ` Joe Buck
1997-09-23 10:56       ` Thomas Koenig
1997-09-24  1:58         ` Jakub Jelinek
     [not found]       ` <199709231755.TAA00725.cygnus.egcs@mvmap66.ciw.uni-karlsruhe.de>
1997-09-23 11:23         ` Jason Merrill
1997-09-24  2:33           ` Torbjorn Lindgren
1997-09-23 11:45       ` John Carr
1997-09-23 17:03         ` Richard Henderson
1997-09-23 17:16           ` Joe Buck
1997-09-28 14:43           ` Joern Rennecke
     [not found]         ` <199709240001.RAA05779.cygnus.egcs@dot.cygnus.com>
1997-09-23 18:25           ` Jason Merrill
1997-09-23 22:08             ` Richard Henderson
1997-09-23 22:46               ` Jason Merrill
1997-09-23 22:56                 ` David S. Miller
1997-09-24  0:11                 ` Richard Henderson
     [not found]       ` <199709231845.OAA14441.cygnus.egcs@biohazard-cafe.MIT.EDU>
1997-09-23 18:32         ` Jason Merrill

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