On 18 Jul 2010, at 13:14, Žilvinas Ledas wrote:

> I want to use it this way:
> 1) Gel all @unitname.function addresses.
> 2) Use disassembler to find nearest next RET.
> 3) Then I assume that I have start and end of the function in the binary file.
> 
> It works at least for the concept-showing app with some functions and enabled 
> optimizations when compiling. Do I have some conceptual flaw?

Yes: there is no guarantee that a function will contain only one "ret" (it is 
that way currently for compiler-generated code, but that can change at any 
time).


Jonas_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to