First gcc-compiled Java program runs!

Per Bothner bothner at cygnus.com
Sat Jun 14 12:57:49 PDT 1997


>    K00l beans Per, but one thing that would
> be interesting to know is how well it stacks
> up to a native C implementation. It would be
> easy to rewrite your program, but I don't have
> your Sun to reference your number to.

Good point.
	cc1java+Kaffe  C
real       15.1       11.2
user       14.2       11.1
sys         0.5        0.0

Some of the extra time for Kaffe is because it takes longer to
get going.  (Initializing some of the system classes takes a while.
These are still compiled using the JIT.)

On the other hand, this is the kind of program cc1java will
handle very well.  More object-oriented programs, or programs
that do more memory allocation (and GC) will do worse,
relative to C.

	--Per Bothner
Cygnus Solutions     bothner at cygnus.com     http://www.cygnus.com/~bothner



More information about the kaffe mailing list