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 cross-compilation


> Speaking again of MIPS not arm, but the executable produced by gcj are
> huge.  Using static linking of libgcj the smallest Hello world program
> it 3.3MB.  Depending of the size of your program I think you would
> probably be able to run with 16MB total ram.  But trying to run gcj
> compiled programs in 8MB or less is probably going to be difficult.

Yes I just noticed that.  I just made a staticly linked helloworld and
it's approximately 30MB in size.  I have 128MB of total flash so a
HelloWorld will fit, not sure about my other app(s) though.

> Your kernel is going to use 2-3MB of ram, so that would leave only 5 - 6
> available for programs.
> 
> With a small heap I think you could probably run a fairly large program
> in 16MB.  We have a program that is about 100,000 lines of java code
> that runs with a 6MB limited heap that runs in 20MB of ram (including
> the linux kernel, init, and several other small programs).

Should be ok here, I have 64MB of RAM to work with.

-Nathan


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