[I7] Volunteer sought to do a little work on dumb-frotz

Andrew Hunter andrew at logicalshift.demon.co.uk
Sun Mar 9 12:06:20 CDT 2008


On 9 Mar 2008, at 16:51, Graham Nelson wrote:

> Secondly, to provide an option which will look
> at I6's debugging information file (names of
> symbols and their addresses, basically) and
> then be able, when the story file finishes, to
> print out the total number of Z-machine cycles
> spent, and the total number in each named
> routine or in those it calls. (It might possibly be
> useful to know the maximum stack usage
> reached during execution, too.)

Something that might be worth looking at for this is the debug.[ch]  
files in the Zoom source, which contains the code for reading I6 debug  
files, amongst other things. With this, implementing this should be a  
matter of hijacking the call instruction and looking up which function  
the address belongs to. You'd need to remove a lot of stuff that  
depends on other parts of Zoom, but I think the symbol reader itself  
should be pretty independent.

Andrew.




More information about the Inform7-porters mailing list