This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
[Fwd: Re: GCJ vs. C++ in RAM]
- From: Vladimir Levin <vladimirl at wrx-ca dot com>
- To: java at gcc dot gnu dot org
- Date: Tue, 06 Apr 2004 15:11:39 -0600
- Subject: [Fwd: Re: GCJ vs. C++ in RAM]
Cool, thanks! Do you have any sense of how much of the heap space is
dedicated to the garbage collector? In other words, if Java didn't have
the Boehm garbage collector built into it, how much smaller would the
heap be? I suspect that if we use C++, we'll use reference counting base
classes or something along those lines, so we won't have the overhead of
running the gc...
Vlad
Not quite. 4MB on disk, 4MB + 10MB = 14MB in RAM.
I have no idea what a similar C++ program would be. I am guessing
that the executable could be half as large, but the heap would be
similar for similar applications.
Dave.