Yeah. I'm interested to see how you manage the heap - with so little
space it could potentially thrash really badly. The p-system got
around this problem by 'disposing' the dispose procedure and simply
having a stack instead, but for Java that's not an option.
One option in Java is to *never* release allocated memory blocks.
Most versions of javacard takes this approach. So if you write
software in Java for the javacard environment, you'll have to
think very carefully before allocating anything, or else you may
soon run out of memory!
(javacard is an interpreter for a subset of Java intended to run
on smartcards, i.e. small chips embedded into credit card size
cards. The chip doesn't have any power source of its own but gets
powered only when inserted in a card reader. The java classes in
this environment will have a lifetime equal to the lifetime of the
card)
Matt