I found some interesting information.
Delphi tb can generate smaller executables, just for this you do not
to use vcl, in this case all events must be done in the hand, as
as in masm32, such as keyboard events, mouse, screen drawing,
buttons and so on. Of course this takes time, but if the person wants a
application that is tiny, like a virus for example will not
use visual components in any way and tried in every way
as much as possible to reduce dependency on third parties by placing the
accesses on a separate unit instead of adding the whole unit.
source: ActiveDelphi . Answer by Johnny-Walker .
In this same post you have another answer, from RodrigoPrado
- Here in the company a common .exe would have 60.7 mb.
-we optimized it to 30.0
-then we still pack it in 7Zip using ultra-mode compression, dropping it to 4.5mb.
so in the end we would have a .zz file of 4.5 mb.
01-We use delphi 7, in Project --- Options on page DEBUGGING
uncheck all the ex: degug information, local symbols,
reference, definitions, assertions, use debug dcus. 02-on page LINKER
in the EXE AND DLL OPTION group, we have deselected the generate consolte, include
td32 debug and include remote debug simbols.
ai we click ok, let's shift + f to a build in the new exe, it goes
fall to less than half of the package, because in these options eh the
user we do not need to include any debug we use for
development, among other things ... .that there are only people who
develops, pro users do not need this or only receive the
pure code.