Enable libgcj for Linux targets

Bryce McKinlay bryce@albatross.co.nz
Tue Jan 23 14:10:00 GMT 2001


Tom Tromey wrote:

> Richard> PS What is typical memory usage when compiling libjava
> Richard> (specifically java/lang/ConcreteProcess.java)?
>
> I'm afraid I don't know.  Is there an easy way to find out?

glibc-2.2 comes with a nice utility for this:

$ memusage /usr/local/gcc/lib/gcc-lib/i686-pc-linux-gnu/2.97/jc1
java/lang/PosixProcess.java -fno-use-divide-subroutine -fuse-boehm-gc
-fasynchronous-exceptions -quiet -dumpbase PosixProcess.java -g1 -version
-o /tmp/ccxtKnCx.s
GNU Java version 2.97 20001024 (experimental) (i686-pc-linux-gnu)
compiled by GNU C version 2.96 20000731 (Red Hat Linux 7.0).

Memory usage summary: heap total: 31802540, heap peak: 10121397, stack
peak: 17184
         total calls   total memory   failed calls
 malloc|      99469       31385878              0
realloc|        590         137664              0   (in place: 61, dec:
8)
 calloc|       3843         278998              0
   free|      88872       21839565

regards

  [ bryce ]




More information about the Java-patches mailing list