From: Tim Tyler <tt@cryogen.com>
Subject: Re: Length limit for variable names in your language?
Date: Sun, 13 May 2001 17:55:16 GMT
Date: 2001-05-13T17:55:16+00:00 [thread overview]
Message-ID: <GDACG4.L3M@bath.ac.uk> (raw)
In-Reply-To: 3AFE60D8.6C3282B7@my-deja.com
Java - from the end of:
http://java.sun.com/docs/books/vmspec/html/ClassFile.doc.html
``The amount of code per method is limited to 65535 bytes by the sizes of
the indices in the exception_table of the Code attribute (�4.7.4), in
the LineNumberTable attribute (�4.7.6), and in the LocalVariableTable
attribute (�4.7.7).''
I believe this is the major limitation that might reflect on
the maximum length of local variable names in Java bytecode.
I can't find any maximum limit on the length of static variables - this
might in principle depend on the availablility of memory.
Since these limits are in the VM specification - and no limits appear to
be specified in the language specification - a compiler may be at liberty
to rename private variables to avoid the issue.
--
__________ http://rockz.co.uk/ http://alife.co.uk/ http://hex.org.uk/
|im |yler http://atoms.org.uk/ http://mandala.co.uk/ tt@iname.com
prev parent reply other threads:[~2001-05-13 17:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-13 10:24 Length limit for variable names in your language? No Na Me
2001-05-13 14:57 ` Larry Kilgallen
2001-05-15 5:42 ` Mark Yudkin
2001-05-13 17:51 ` Edward Rosten
2001-05-14 2:19 ` Cesar Rabak
2001-05-14 9:01 ` Edward Rosten
2001-05-14 13:36 ` Larry Kilgallen
2001-05-15 0:16 ` Rev. Bob 'Bob' Crispen
2001-05-13 17:55 ` Tim Tyler [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox