From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Richard.Earnshaw@arm.com Cc: "Frank Ch. Eigler" , DJ Delorie , gdb-patches@sources.redhat.com Subject: Re: [patch] add trace capabilities to arm sim Date: Tue, 27 Feb 2001 07:08:00 -0000 Message-id: <3A9BC24D.597BFFAE@cygnus.com> References: <200102271425.OAA17433@cam-mail2.cambridge.arm.com> X-SW-Source: 2001-02/msg00479.html 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