[antlr-interest] C runtime Memory Usage

Bot Tiger bottiger1 at gmail.com
Fri Jan 23 19:22:56 PST 2009


Hello, I am using the C runtime and experiencing heavy memory usage.

I am interpreting an AST tree recursively.

In each interpret call, I am checking the token text by using
pANTLR3_BASE_TREE->getText()->chars.
Am I suppose to manually free this when I am done with it?

Also, I am recursively calling the children nodes with
pANTLR3_BASE_TREE->getChild().
Am I also supposed to free these as well? I was assuming that they returned
only 1 copy of the node.

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090123/7d8aeb0d/attachment.html 


More information about the antlr-interest mailing list