This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [patch] add trace capabilities to arm sim


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]