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: Stack size


Steen Jansdal writes:
 > 
 > The reason I'm asking this is that I'm trying to evaluate if Linux 
 > on a x86 is going to be the platform for our next embedded 
 > device. The memory on this device are limited to 16 or 32 Mb.
 > The programs for this device are going to heavy multithreaded,
 > and consist of a web-server, a soap-server and several user
 > programs. It is my highest wish that we can use java as our
 > language. C++ is too difficult to maintain.
 > 
 > Any advices for my evaluation are much appreciated.

Java stacks are quite small unless heavy recursion is used.  This is
because the language does not use stack allocation for anything except
scalar variables -- numbers and object references.

In any case, Linux systems do not need to allocate "real" memory areas
to thread stacks -- it's all in virtual memory anyway, and physical
memory is paged as required.

Andrew.


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