陳韋任 <che...@iis.sinica.edu.tw> writes:

>> The hard part is getting that information to be available at runtime.
>
>   The easiest way is saving that information on the disk. Or I can use
> `objcopy` to insert the information to the executable. The binary
> translator can read that information at runtime.
>
>   I guess what "the hard part" you mean is how to insert that
> information into executable directly without using something like
> `objcopy`. Is that right?

You need to define a format, you need to have code which can read it,
you need to be able to do something useful with it, etc.  I guess from
my perspective that seems like the hard part, since the information is
readily available in the compiler.

>   Can I dump other information such as CFG in a similar way as register
> usage does?

Sure, you can do whatever you like.

Ian

Reply via email to