Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Blandy <jimb@zwingli.cygnus.com>
To: jtc@redback.com
Cc: Jim Blandy <jimb@zwingli.cygnus.com>,
	Michael Elizabeth Chastain <chastain@cygnus.com>,
	gdb-patches@sources.redhat.com
Subject: Re: [RFA] Revised C++ ABI abstraction patches
Date: Thu, 15 Mar 2001 12:36:00 -0000	[thread overview]
Message-ID: <np66ha3h2c.fsf@zwingli.cygnus.com> (raw)
In-Reply-To: <5mae6mu8pc.fsf@jtc.redback.com>

I was being thoroughly tongue-in-cheek.

But the joke is made a bit bitter by stuff like partial-stab.h, where
someone put 25k of code in a header file, which gets #included into
two different .c files, to save function call overhead.  Good call.
When you set a breakpoint in partial-stab.h, you have no idea which .c
file it's going into.  The best way to set a breakpoint in there is to
step to the place you want, and then do `break *$pc'.

(Who's the maintainer of that code, anyway?  ... Oh.)

jtc@redback.com (J.T. Conklin) writes:
> >>>>> "Jim" == Jim Blandy <jimb@zwingli.cygnus.com> writes:
> Jim> And besides, function calls are so slow.  Remember, GDB's performance
> Jim> matters a lot --- it's used to debug real-time operating systems!
> Jim> :(
> 
> I don't know whether you're being facetious, but IMHO avoiding
> function call overhead is not a good argument for making a piece of
> code a macro instead of a function.  I've seen many circumstances
> where macros (or inlined functions) decrease the overall performance
> of a system because the added code results in i-cache thrashing.
> 
> I think we should be addressing performance problems that are the
> result of poor algorithms rather than spending any time bothering
> with microoptimizations.

Hear, hear.


  reply	other threads:[~2001-03-15 12:36 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-03-15 10:50 Michael Elizabeth Chastain
2001-03-15 11:04 ` Jim Blandy
2001-03-15 11:32   ` Michael Snyder
2001-03-15 11:35   ` J.T. Conklin
2001-03-15 12:36     ` Jim Blandy [this message]
2001-03-15 15:21       ` Stan Shebs
2001-03-15 17:54         ` Jim Blandy
2001-03-15 20:11           ` Andrew Cagney
2001-03-15 13:46   ` Andrew Cagney
2001-03-15 15:01     ` Daniel Berlin
  -- strict thread matches above, loose matches on Subject: below --
2001-03-15  1:50 Jim Blandy
2001-03-15  3:15 ` Eli Zaretskii
2001-03-15  6:21   ` Fernando Nasser
2001-03-15  6:46     ` Daniel Berlin
2001-03-15 10:40   ` Jim Blandy
2001-03-15 13:38     ` Andrew Cagney
2001-03-15 14:05       ` Jim Blandy
2001-03-16 23:28     ` Eli Zaretskii
2001-03-19  9:38       ` Jim Blandy
2001-03-19 11:58         ` Eli Zaretskii
2001-03-15 14:57 ` Andrew Cagney
2001-03-15 17:57   ` Jim Blandy
2001-03-15 18:10     ` Andrew Cagney
2001-03-15 19:12     ` Daniel Berlin
2001-03-15 19:56       ` Jim Blandy
2001-03-15 18:58   ` Daniel Berlin

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=np66ha3h2c.fsf@zwingli.cygnus.com \
    --to=jimb@zwingli.cygnus.com \
    --cc=chastain@cygnus.com \
    --cc=gdb-patches@sources.redhat.com \
    --cc=jtc@redback.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