Re: Questions about code instrumentation in FDO

2020-04-07 Thread Martin Liška
On 4/7/20 2:01 PM, Erick Ochoa wrote: Hello, Can someone help me understand better GCC's profile driven instrumentation? I know this can be a long topic, but I am not looking for a long discussion. I am just trying to orient myself regarding GCC's FDO implementation. Hello. Sure. 1. I

Questions about code instrumentation in FDO

2020-04-07 Thread Erick Ochoa
Hello, Can someone help me understand better GCC's profile driven instrumentation? I know this can be a long topic, but I am not looking for a long discussion. I am just trying to orient myself regarding GCC's FDO implementation. 1. I know that gcc uses an instrumentation based profiler.

Code Instrumentation

2010-05-31 Thread Wolfgang
Hallo, i would like to instrument some existing code. For example, after an ADD-EXPR: int main() { int a=5; int b=5; int c = a + b; ... } should become: ... int c = a + b; puts(ADD-EXPR); ... I thought writing a Gimple-pass would be best, but i don't know exactly where to start. I'm

Code instrumentation with GCC

2008-05-29 Thread Narech K
Hi, Is there a way to make GCC to instrument every function it compiles with a prologue/epilogue call to a user defined code a la MSVC's _penter and _pexit, e.g.: http://msdn.microsoft.com/en-us/library/c63a9b7h.aspx http://msdn.microsoft.com/en-us/library/xc11y76y.aspx If not, can anyone

Re: Code instrumentation with GCC

2008-05-29 Thread Jan-Benedict Glaw
On Thu, 2008-05-29 12:03:05 +, Narech K [EMAIL PROTECTED] wrote: Is there a way to make GCC to instrument every function it compiles with a prologue/epilogue call to a user defined code a la MSVC's _penter and _pexit, e.g.: http://msdn.microsoft.com/en-us/library/c63a9b7h.aspx

code instrumentation in the tree structure

2006-09-05 Thread Björn Skoglund
Hi everyone I don't know if this is a development-list issue but I thought I'd try. I'm writing a code instrumentation tool using the GEM plugin-system (http://www.ecsl.cs.sunysb.edu/gem/) as a part of my thesis project. I got it working in gcc-3.4 with a little help from the GEM maintainer

code instrumentation in the tree structure

2006-09-05 Thread Björn Skoglund
Hi everyone I don't know if this is a development-list issue but I thought I'd try. I'm writing a code instrumentation tool using the GEM plugin-system (http://www.ecsl.cs.sunysb.edu/gem/) as a part of my thesis project. I got it working in gcc-3.4 with a little help from the GEM maintainer

Re: a question about code instrumentation in RTL level

2006-07-17 Thread Jim Wilson
sean yang wrote: The GCC internals explicitly introduced code manipulation APIs in TREE representation (bsi_insert_before, bsi_remove etc). But I did not see the equivalent for RTL representation. There is emit_insn_after, emit_insn_before. There is also the sequence stuff: start_sequence,