On 10/08/2012 02:14 PM, Krishnan Parthasarathi wrote: >> int >> real_inner_function (void *outer_frame, int arg) >> { >> /* Same as user's function but with extra arg. */ >> } >> >> int >> inner_function (int arg) >> { >> real_inner_function(COMPILE_TIME_CONSTANT,arg); > > Shouldn't the outer frame's address be RUNTIME_CONSTANT? > >> } For dynamic code generation (even the degenerate sort that's involved in creating thunks and trampolines), compile time is run time. ;)