This is the mail archive of the java-discuss@sourceware.cygnus.com 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]

Re: Compiling native resources


Tom Tromey wrote:
> 
> Jeff> When compiling to native code with gcj, I can still load
> Jeff> resources from the classpath.  But they are separate from the
> Jeff> executable.  What is the feasability of including these
> Jeff> resources in the executable, perhaps as an ELF segment, so that:
> 
> You could also compile the resource into a class which you then
> compile with gcj.

That might work well for small resources.  Currently gcj array
initialization incurs some overhead at runtime.

> This has been discussed before on this list.  I think the consensus is
> that it is not only possible but also desriable.

OK, found it:

http://sourceware.cygnus.com/ml/java-discuss/1999-q3/msg00318.html

That discussion is in context of property files, which is a reasonable
thing to compile into a class.

It's somehing to add to projects.html, I guess...

-- 
Jeff Sturm
jsturm@sigma6.com

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