This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: GCJ vs. C++ in RAM
- From: Bart Locanthi <bart at sabl dot com>
- To: Vladimir Levin <vladimirl at wrx-ca dot com>
- Cc: java at gcc dot gnu dot org
- Date: Tue, 06 Apr 2004 11:23:50 -0700
- Subject: Re: GCJ vs. C++ in RAM
- References: <40633001.3090605@wrx-ca.com> <4069B130.20900@wrx-ca.com> <4072D939.9070605@wrx-ca.com>
seems like biggest [sic] issue will be the size of libjava.
gcj objects are 1-1 with c++, not much extra goo. unless you're also
concerned with long/short-ness as well.
Vladimir Levin wrote:
I am currently evaluating using gcj for an embedded application, and
I'd like to get a sense of how large the discrepancy in RAM usage
would be depending on whether we went ahead with gcj or stuck to C++.
Is it an order of magnitude or is it fairly sensible?
I am hoping that I can get some estimates from this list on the RAM
consumption of an application written with GCJ vs. C++. The
application I have in mind has about 50,000 lines of code, and
incorporates multi-threading and sockets. If possible, the C++
implementation would include the Boehm garbage collector, but I
wouldn't mind getting an estimate for C++ with and without the garbage
collector.