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: GCJ for eCos


Ø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.


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