GCJ for eCos
Andrew Haley
aph@redhat.com
Fri Jun 6 13:30:00 GMT 2003
Øyvind Harboe writes:
> > > When I compile a hello world in eCos (using GCC), it is 40k.
> >
> >I'm surprised they can get printf() that small.
>
> I tell a lie. Sort of. The dumped a string to the serial
> port and flashed some leds.
:-)
> However, if I change my GCJ ARM java app to:
>
> public Hello
> {
> static publlic void main(String[])
> {
> }
> }
>
> It is still >1MB w/arm-elf.
Well, if we compare the size of null programs in C, we can have very
small ones indeed! But I do not think this is very sensible. Better
to compare the size of systems that are designed for similar
platforms.
At present we don't have a small configuration for libgcj, so we
cannot make a comparison. I do believe that we can make a small
configuration of libgcj and do a good job. But that is all theory
until someone steps up to the plate.
Andrew.
More information about the Java
mailing list