QUIT as a function?

Andrew Cagney ac131313@cygnus.com
Mon Sep 20 22:45:00 GMT 1999


Stan Shebs wrote:
> 
>    From: Andrew Cagney <ac131313@cygnus.com>
>    Date: Fri, 17 Sep 1999 15:14:42 +1000
> 
>    Is there any reason for not converting QUIT into a function?
> 
> Yes, QUIT appears in the inner loops of the symbol readers, which
> are known to be compute-bound and some of the most time-critical
> code in all GDB.  So I'd want to see some comparative performance
> numbers, especially on hosts with lame calling conventions, before
> we go messing with QUIT.

True.  I guess a pre-cursor would be to ``fix'' the symbol table stuff
so that it wasn't so dependent on linear search algorithms :-(.  The
performance gains made there should more than out way any performance
loss with an extra function call.

	Andrew


More information about the Gdb mailing list