[fpc-pascal] Get all caller adresses of a procedure/function

Mark Morgan Lloyd markMLl.fpc-pascal at telemetry.co.uk
Tue Aug 7 00:04:25 CEST 2012

Rainer Stratmann wrote:

> All I need is all caller adresses of p1 in the program.

You might be able to do that sort of thing by running the program with a 
profiler and analyzing all captured stacks. But it would be a vast 
amount of effort, and unless you could guarantee 100% coverage (i.e. 
feeding the program all possible input states etc.) you'd probably miss 

You're left with the options of learning how to use resourcestrings 
effectively, or using a language such as Smalltalk where the senders of 
a message are known in advance.

Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk

[Opinions above are the author's, not those of his employers or colleagues]

More information about the fpc-pascal mailing list