|
From: Josef W. <Jos...@gm...> - 2012-11-06 11:51:46
|
Am 05.11.2012 01:49, schrieb Wonjoon Song: > Hello all, > > In the lackey example, there is instrument function like > > static VG_REGPARM(2) void trace_load(Addr addr, SizeT size). > > Instead of calling this precompiled function, will I get performance gain if > I directly generate VEX code? You will, but it depends on what "trace_load" is doing. If it is just incrementing a counter, the benefit should be quite high. But if you end up calling another function (such as printf) from your generated IR, it probably is not worth it. Josef Has anybody done this kind of optimization? If so, how much performance gain did you get? > > Thank you, > Wonjoon > > > > > > ------------------------------------------------------------------------------ > LogMeIn Central: Instant, anywhere, Remote PC access and management. > Stay in control, update software, and manage PCs from one command center > Diagnose problems and improve visibility into emerging IT issues > Automate, monitor and manage. Do more in less time with Central > http://p.sf.net/sfu/logmein12331_d2d > _______________________________________________ > Valgrind-users mailing list > Val...@li... > https://lists.sourceforge.net/lists/listinfo/valgrind-users > |