This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Any expected improvements in startup times?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]