GCJ for eCos

Øyvind Harboe oyvind.harboe@zylin.com
Fri Jun 6 13:00:00 GMT 2003


> > 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. 
> > That includes the eCos embedded OS with serial drivers and
> > multithreading. Impressive by any standard.
>>Well, hold on now! eCos is a system designed to be configurable and 
>as tiny as possible. 

And IMO they have done a very good job.
>The Java equivalent is perhaps J2ME(TM) Connected Limited 
>Device Configuration (CLDC). According to the J2ME datasheet, 
>"These devices typically have either 16-or 32-bit CPUs, and 
>a minimum of 128 KB to 512 KB of memory available for the 
>Java platform implementation and associated applications." 

I'm a bit worried about interpreting Java byte codes on a 66MHz
cpu w/5 wait states per memory access(flash) and no cache,
but, I should perhaps have a look at J2ME.
Øyvind


More information about the Java mailing list

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