Re: Compiler Optimization
- From: "NullBock" <funny_leech@xxxxxxxxxxxx>
- Date: 31 Dec 2005 13:22:35 -0800
Equations solely consisting of compile-time constants are typically
solved before being compiled to byte code. This is also true of
strings, so :
String s = "I want " + ((23 + 7) / 3) + " big macs";
would be stored in byte code as "I want 10 big macs".
Walter Gildersleeve
Freiburg, Germany
______________________________________________________
http://linkfrog.net
URL Shortening
Free and easy, small and green.
.
- References:
- Compiler Optimization
- From: Luc The Perverse
- Compiler Optimization
- Prev by Date: Re: Newbie question.. reading location header
- Next by Date: Re: J2ME MIDP 1.0 reading files outside jar /res ?
- Previous by thread: Compiler Optimization
- Index(es):