
In which language is TC written??
Moderators: Hacker, petermad, Stefan2, white
Taht's the point, 2010 would be closer to 1mb for an empty form. Unicode VCL does come at a price!MVV wrote:I think it was normal C/C++ application that was linked w/o static CRT (static CRT adds about 50-100 KB for empty application or library).
My tools that doesn't use CRT at all have similar size (e.g. in my signature).
Delphi 3 adds about 180 KB for empty form, Delphi 2 I think even less.

Only WM_INITDIALOG (optional) if it uses DialogBoxParam function to create dialog window.Egh wrote:Yeah, just remind me please how many windows messages an average application needs to process before even displaying it's main window

Or WM_CREATE (optional), WM_DESTROY and WM_QUIT if it uses DefWindowProc in window procedure and CreateWindow[Ex] function to create window. But app will also need to register simple window class and message loop. Just to display window.
Some other messages may be needed to limit window size, to act on keyboard/mouse events etc.
Anyway, IMHO window management should take a little part of code for great apps.
That is given of course. Thing is, in most cases you just don't bovver with that VCL code size. Makes programmer's life easierMVV wrote:But often this 'VCL code already included' eats much more code than true app's code...
In case of Delphi - e.g. because linker can't include only methods of class/object that are really usable in app... Add simple label (first) to form (w/o any settings) - size will grow by 5-10 KB.

- ghisler(Author)
- Site Admin
- Posts: 50383
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
On Friday I finally managed to compile the entire TC with Lazarus (after a few weeks of hard work). It starts, but many functions still don't work correctly, mainly because Lazarus blocks the handling of all standard Windows messages like WM_PAINT by program methods. So there is still a lot of work ahead.
The size has grown from 3.5MB to 5.5MB with smart linking turned off. I haven't tried with Smart linking on yet. The Overhead of Lazarus is 2MB compared to Delphi 2. At least there seems to be no noticeable slowdown on my test machine (old Pentium III with 866MHz).
The size has grown from 3.5MB to 5.5MB with smart linking turned off. I haven't tried with Smart linking on yet. The Overhead of Lazarus is 2MB compared to Delphi 2. At least there seems to be no noticeable slowdown on my test machine (old Pentium III with 866MHz).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
2ghisler(Author)
Thanks for the update. Keep up the the great work!
I guess you are already participating in the Lazarus forum to clarify the open questions:
http://www.lazarus.freepascal.org/index.php?action=forum
Thanks for the update. Keep up the the great work!
I guess you are already participating in the Lazarus forum to clarify the open questions:
http://www.lazarus.freepascal.org/index.php?action=forum