| Author |
compile 32 bit deploy to 64 bit
|
Tom Henricksen
Ranch Hand
Joined: Mar 23, 2004
Posts: 135
|
|
If we deploy to a 64 bit JVM do we need to compile in a 64 bit JVM so it runs optimally? Or is the bytecode the same no matter where you compile it? We have deployed our code to a 64 bit enviroment and it appears slow. It was compiled in a 32 bit enviroment. Just want to make sure we are doing everything correctly. Thanks, Tom [ January 31, 2008: Message edited by: Tom Henricksen ] [ January 31, 2008: Message edited by: Tom Henricksen ]
|
 |
Henry Wong
author
Sheriff
Joined: Sep 28, 2004
Posts: 16680
|
|
Originally posted by Tom Henricksen: If we deploy to a 64 bit JVM do we need to compile in a 64 bit JVM so it runs optimally? Or is the bytecode the same no matter where you compile it? We have deployed our code to a 64 bit enviroment and it appears slow. It was compiled in a 32 bit enviroment. Just want to make sure we are doing everything correctly. Thanks, Tom
The Java bytecode is the same regardless of whether it is deployed in a 32 bit or 64 bit JVM. When the JVM runs, the JIT will compile the java application from the bytecode to the native enviroment, which will be 32 bit for one case, and 64 bit for the other. Henry
|
Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
|
 |
Tom Henricksen
Ranch Hand
Joined: Mar 23, 2004
Posts: 135
|
|
|
Thanks Henry
|
 |
 |
|
|
subject: compile 32 bit deploy to 64 bit
|
|
|