This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Any expected improvements in startup times?
- From: Adam Megacz <megacz at gcc dot gnu dot org>
- To: Erik Poupaert <erik dot poupaert at skynet dot be>
- Cc: java at gcc dot gnu dot org
- Date: Sun, 22 Feb 2004 17:00:27 -0800
- Subject: Re: Any expected improvements in startup times?
- Organization: Myself
- References: <20040222221940.7faecefe.erik.poupaert@skynet.be>
Erik Poupaert <erik.poupaert@skynet.be> writes:
> But then again, statically linked, the application runs much faster
> than dynamically linked. Why?
Dynamic linking on most platforms (Darwin/Mach being a notable
exception) requires writing 'fixups' into the program's memory image
once loaded, since the address of library routines is not known at
link time.
Mach/Darwin does these fixups at "install time" (when the binary is
written to the disk on the target machine), and has a fallback
mechanism if the fixups become out of date.
For Mac users, that's what the annoying "optimizing volume FOO"
message at the end of the installer is.
- a