GCJ for eCos

Jeff Sturm jsturm@one-point.com
Fri Jun 6 19:22:00 GMT 2003


On Fri, 6 Jun 2003, [iso-8859-1] Øyvind Harboe wrote:
> However, if I change my GCJ ARM java app to:
>> public Hello
> {
> static publlic void main(String[])
> {
> }
> }
>> It is still >1MB w/arm-elf.

Look at libgcj startup. The first thing it does with a Java object is
create a NullPointerException. That initializes java.lang.Throwable as a
side effect, and along with it java.lang.System, much of java.util and
VMClassLoader. So as you see, even an empty main() block pulls in a good
deal of the runtime.
I'm also interested in a solution for small-memory systems. A few months
back when I made a half-hearted attempt, I got bogged down in the
collections classes where all I really wanted was Vector and Hashtable,
but they are now hard to separate from the rest of the collections stuff.
Then it occurred to me that the old 1.0.2 API might be closer to what
we'd need, but I don't know if any of the old classes are accessible from
CVS anymore, and whether they'd be usable if you found them.
Jeff


More information about the Java mailing list

AltStyle によって変換されたページ (->オリジナル) /