Board index » delphi » optimize the size of delphi-.exe′s

optimize the size of delphi-.exe′s

hi @ll

every time i compile the default project, that is built at startup in
delphi 4, the exe-file is about 275kb.

can you optimize the size of these .exe-files in delphi easily?

thx for your reply.

Yours faithful,
Michael Meier

 

Re:optimize the size of delphi-.exe′s


Hello,
Quote
"Michael Meier" <mihi87hit...@gmx.ch> wrote in message

news:9099eee.0204251303.a0fe71b@posting.google.com...

Quote
> hi @ll

> every time i compile the default project, that is built at startup
in
> delphi 4, the exe-file is about 275kb.

> can you optimize the size of these .exe-files in delphi easily?

To use {$APPTYPE CONSOLE}
Or clean uses

It is more in any way :-)

--
Konstantin Ergin | mailto:c...@atnet.ru | http://www.art.atnet.ru/

Re:optimize the size of delphi-.exe′s


hi

Quote
> To use {$APPTYPE CONSOLE}

but this is only something to use if i delete all forms in the project
:((( for such things i can use pascal...

Quote
> Or clean uses

sorry, i don't understand what you mean.

Best Wishes,
Michael Meier

Re:optimize the size of delphi-.exe′s


What Konstatin meant:
1.) remove all packages that you don't need (Project -> Options -> Packages)
2.) remove all unit names from Uses clause in Interface section that you
don't need

That should help.

Quote
"Michael Meier" <mihi87hit...@gmx.ch> wrote in message

news:9099eee.0204252110.2db7bc58@posting.google.com...
Quote
> hi

> > To use {$APPTYPE CONSOLE}

> but this is only something to use if i delete all forms in the project
> :((( for such things i can use pascal...

> > Or clean uses

> sorry, i don't understand what you mean.

> Best Wishes,
> Michael Meier

Re:optimize the size of delphi-.exe′s


Hello,
Quote
"Michael Meier" <mihi87hit...@gmx.ch> wrote in message

news:9099eee.0204252110.2db7bc58@posting.google.com...

Quote
> > To use {$APPTYPE CONSOLE}

> but this is only something to use if i delete all forms in the
project
> :((( for such things i can use pascal...
> > Or clean uses
> sorry, i don't understand what you mean.

Bad I know English, but I`ll try explain.
The list of used modules can be cleaned - to delete not necessary and
to replace by their instructions.

{$A+,B-,D-,F-,G+,I-,K-,L-,N-,P-,Q-,R-,S-,T-,V-,W-,X+,Y-}
{$M 32768,0}
uses WinTypes, WinProcs;
begin
MessageBox(GetActiveWindow, 'Hello', 'Kostik',MB_ICONINFORMATION OR
MB_OK)
end.

exe file - only 3 KB
I compiled on D4

Re:optimize the size of delphi-.exe′s


Quote
Michael Meier wrote in message

<9099eee.0204251303.a0fe...@posting.google.com>...

Quote
>hi @ll

>every time i compile the default project, that is built at startup in
>delphi 4, the exe-file is about 275kb.

>can you optimize the size of these .exe-files in delphi easily?

The easiest and in many ways the best way is to
stop thinking about it.

I know that this is in flagrant contradiction of
my usual adhortations to turn on your brain and
use it; this should merely serve to impress the
point with extra vigour.

Groetjes,
Maarten Wiltink

Other Threads