Empty Initialization Remover

Speeds up the start up of your Delphi programs by removing all useless initialization code.
Download EIR Exe
Download EIR Source

Introduction

Delphi 3/4/5 always add some initialization and finalization code to every unit, if the unit was empty this code is redundant. This program removes (or better: it removes the pointer to it by which it is automatically executed) these redundant initialization and finalization sections.

How to use the EIR.

Just execute:

EIR [filename]

in which [filename] is the program/dll/package (including extension) which empty initialization code has to be removed.

You have to use EIR before EXE compressors, StripReloc or tools like that.

Changes in version 0.0.2.2
Some small changes in the pefile units for additional error checking.

Changes in version 0.0.2.1
Only some changes in PEFile, to prevent memory leaks.

Changes in version 0.0.2.0
The code is completely rewritten, which uses some code from the decompiler, this was needed to remove a problem with fixups.