In order for -icount to work, it's important for the target translate.c code to correctly bracket any generated code which can "do I/O" with gen_io_start()/gen_io_end() calls. But does anybody know exactly what the criteria are here for this? It would be nice if we could document this in a comment in gen_icount.h -- I'm happy to write one up if somebody will just tell me what the right answer is :-)
thanks -- PMM