RE: On strategies for function call instrumentation

2009-11-24 Thread Grigori Fursin
rrick Coetzee >* To: gcc at gcc dot gnu dot org >* Date: Mon, 23 Nov 2009 19:44:10 -0800 >* Subject: On strategies for function call instrumentation > > Hi, I'm Derrick Coetzee and I'm a grad student working with Daniel > Wilkerson et al on the Hard

Re: On strategies for function call instrumentation

2009-11-24 Thread Yuri Kashnikoff
Hi! I totally agree with Basille. Actually pretty similar thing was implemented by Liang Peng (ICT) as GCC GSoC'09 project - http://ctuning.org/wiki/index.php/CTools:ICI:Projects:GSOC09:Function_cloning_and_program_instrumentation So, probably you should take a look at the code in the instrument

Re: On strategies for function call instrumentation

2009-11-24 Thread Basile STARYNKEVITCH
Mark Mitchell wrote: Derrick Coetzee wrote: 1. We have a C/C++ source-to-source translation framework. We could translate each function call "f(a,b,c)" to something like "({ _asm { ... }; typeof(f(a,b,c)) result = f(a,b,c); _asm { ... }; result; })" 2. We could modify the code generation of gcc

Re: On strategies for function call instrumentation

2009-11-24 Thread Mark Mitchell
Derrick Coetzee wrote: > 1. We have a C/C++ source-to-source translation framework. We could > translate each function call "f(a,b,c)" to something like "({ _asm { > ... }; typeof(f(a,b,c)) result = f(a,b,c); _asm { ... }; result; })" > 2. We could modify the code generation of gcc in a private fo

On strategies for function call instrumentation

2009-11-23 Thread Derrick Coetzee
Hi, I'm Derrick Coetzee and I'm a grad student working with Daniel Wilkerson et al on the Hard Object project at UC Berkeley (see http://www.eecs.berkeley.edu/Pubs/TechRpts/2009/EECS-2009-97.html). To minimize implementation effort, we'd like to use gcc as the compiler for our platform. The main tr