[antlr-interest] generated code too big? try -Xnoinlinedfa

Terence Parr parrt at antlr.org
Wed Dec 26 18:47:05 PST 2007


ack. too big!

~/tmp $ java org.antlr.Tool T.g
ANTLR Parser Generator  Version 3.1b1 (??)  1989-2007
~/tmp $ javac TLexer.java
TLexer.java:1339: code too large for try statement
         try {
             ^
TLexer.java:1338: code too large
     public final void mIPV6_ADDRESS() throws RecognitionException {
                       ^

finishes but code is too big...bummer...ok, i'll try

~/tmp $ java org.antlr.Tool -Xnoinlinedfa T.g
~/tmp $ javac TLexer.java
~/tmp $ wc -l TLexer.java
     4550 TLexer.java
~/tmp $ java org.antlr.Tool T.g
ANTLR Parser Generator  Version 3.1b1 (??)  1989-2007
~/tmp $ wc -l TLexer.java
    16913 TLexer.java

ah ha!

Ter



More information about the antlr-interest mailing list