This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] add trace capabilities to arm sim
- To: Richard dot Earnshaw at arm dot com
- Subject: Re: [patch] add trace capabilities to arm sim
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 27 Feb 2001 10:05:49 -0500
- Cc: "Frank Ch. Eigler" <fche at redhat dot com>, DJ Delorie <dj at redhat dot com>, gdb-patches at sources dot redhat dot com
- References: <200102271425.OAA17433@cam-mail2.cambridge.arm.com>
The ARM simulator doesn't use sim/common so this is strictly a BTW.
sim/common simulators address performance concerns such as function call
overhead using two techniques:
o inline
o compile time
enabling of features
code would we written as:
do_trace_stuff (....)
and then, when the compiler supported it, ``do_trace_stuff'' might or
might not be inlined.
The second bit of trivia relates to Frank's comment. Performance
analysis of simulators has shown that some stuff, like tracing, should
be left as separate functions. The likely reason was that inlining the
code blew out the host CPU cache.
For what it is worth.
Andrew