JLex lookup table too large

aduncan <aduncan@cs.ucsb.edu>
7 Oct 1998 23:02:20 -0400

          From comp.compilers

Related articles
JLex lookup table too large aduncan@cs.ucsb.edu (aduncan) (1998-10-07)
Re: JLex (and JavaCUP) lookup table too large aduncan@cs.ucsb.edu (aduncan) (1998-10-10)
| List of all articles for this month |
From: aduncan <aduncan@cs.ucsb.edu>
Newsgroups: comp.compilers
Date: 7 Oct 1998 23:02:20 -0400
Organization: U.C. Santa Barbara
Keywords: Java, lex, question

All:


I inherited a JLex/JavaCUP parser that I'm modifying. I added all of two
new keywords, and the emitted Java lexer has a lookup table that pushes
the compiled classfile to larger than 64K. (Sun's javac version 1.2beta4
warmns that "Virtual machines may refuse the resulting class file.") Any
suggestions about massaging the lexical definition to reduce the size of
the generated tables? It's basically a grammar for Java itself, plus a
few new keywords.


Andrew Duncan
http://www.cs.ucsb.edu/~aduncan


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.