|
From: xinran w. <xin...@gm...> - 2009-02-27 04:15:00
|
Nick, Thank you for your quick response. I understand how my handler function is called and it does work at runtime in my tool. My question is what is the pointer to variable t1. i.e. How to refer t1 ? Are these temporary variables stored in a global array or linked list? If yes, could you tell me the name of the array. , -Xinran On Thu, Feb 26, 2009 at 9:37 PM, Nicholas Nethercote <n.n...@gm...> wrote: > On Fri, Feb 27, 2009 at 1:47 PM, xinran wang <xin...@gm...> wrote: >> >> Thank you very much for your response. I do need to access the value >> of t1 at runtime. Could you tell me how to access the value at my >> function, e.g. wrtmp_rdtmp_handler. >> My function "wrtmp_rdtmp_handler" will be called at runtime, right ? > > Yes. The arguments won't have type IRTemp, though; that type only > exists at compile-time. > I think all arguments for called functions must be word-sized, eg. > Word or SizeT. Have a look at the function trace_load() in > lackey/lk_main.c and how it is called; I think what you have is very > close to working. > > NIck > |