This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Quick Optimization Question


Hi All,

Sorry if the answer to this is obvious, but I figured
someone (Andrew) would know this off the top of his
head.

If I do this:

public static final byte[] FOO = new byte[] {....};

...will gcj know to translate FOO.length into
a constant at compile time?

-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]