This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] Revised C++ ABI abstraction patches
- To: Jim Blandy <jimb at zwingli dot cygnus dot com>
- Subject: Re: [RFA] Revised C++ ABI abstraction patches
- From: jtc at redback dot com (J.T. Conklin)
- Date: 15 Mar 2001 11:35:11 -0800
- Cc: Michael Elizabeth Chastain <chastain at cygnus dot com>,gdb-patches at sources dot redhat dot com
- References: <200103151850.KAA30796@bosch.cygnus.com><nplmq63lb6.fsf@zwingli.cygnus.com>
- Reply-To: jtc at redback dot com
>>>>> "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.
--jtc
--
J.T. Conklin
RedBack Networks