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]

Re: Another 646 patch and performance comparison with TOWER (solved)




On Wed, Apr 03, 2002 at 11:23:20AM +0200, Martin Kahlert wrote:
> Building standalone java programs seems to be quite tricky.

Since dynamic loading is an important feature of any Java environment
static linking is not an option in most cases.
The old trick to get things linked in C/C++ applies here to

gnu.gcj.convert.Input_ASCII dummy = null
if (dummy != null)
{
  dummy = new gnu.gcj.convert.Input_ASCII();
}

.. and watch out for optimizers!

But you should be able to pick up byte code for gnu.gcj.convert.Input_ASCII 
from libgcj.jar if I am not mistaken (?)


regards,
-- 
Göran Thyni
 Luleĺ, Sweden



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