Re: BDS2006 exe sizes
- From: erewhon@xxxxxxxxxx (J French)
- Date: Sun, 26 Feb 2006 09:01:06 +0000 (UTC)
On Sat, 25 Feb 2006 12:38:48 +0100, Hans-Peter Diettrich
<DrDiettrich@xxxxxxxxxxx> wrote:
Ian schrieb:
Did you just decide to drop BDS2006 just because one file is
slightly bigger than the other?
Slightly? I don't consider 25,600 bytes a slight increase. In D7, a
simple console application is only 16,384 bytes.
You should take into account the environment of a "console" application:
A 16 bit DOS program uses DOS and BIOS interrupts. When such a program
is started under Windows, then Windows has to provide (emulate) such an
environment.
A 32 bit console application uses Windows APIs instead of interrupts.
The capabilities of these APIs grow with every new Windows version, so
that the libraries also must grow, in order to make the new console etc.
functionality available to applications.
Really ?
The APIs are just declarations, mostly in the windows unit
- also the compiler strips out code that it knows is not used
More likely the reason for the growth is that more Class based code is
added, and it is hard for the compiler to be sure that it really is
redundant.
A .NET console application uses .NET APIs instead of interrupts, the
same API/library considerations apply as for 32 bit applications. A
difference (in file size) may be noticeable, because .NET provides most
library code in dedicated external assemblies - comparable to "using
runtime packages" in Delphi for Win32.
I like to envisage the .NET framework as a reversion to MS's VB
runtime DLL that contains a PCode interpreter (and I suspect elements
of a JIT compiler)
Not a bad design, especially for portability, but not the original
Delphi concept.
.
- Follow-Ups:
- Re: BDS2006 exe sizes
- From: Marco van de Voort
- Re: BDS2006 exe sizes
- From: Maarten Wiltink
- Re: BDS2006 exe sizes
- References:
- BDS2006 exe sizes
- From: Ian
- Re: BDS2006 exe sizes
- From: Uffe Kousgaard
- Re: BDS2006 exe sizes
- From: Ian
- Re: BDS2006 exe sizes
- From: Uffe Kousgaard
- Re: BDS2006 exe sizes
- From: Ian
- Re: BDS2006 exe sizes
- From: Hans-Peter Diettrich
- BDS2006 exe sizes
- Prev by Date: Re: BDS2006 exe sizes
- Next by Date: Re: BDS2006 exe sizes
- Previous by thread: Re: BDS2006 exe sizes
- Next by thread: Re: BDS2006 exe sizes
- Index(es):
Relevant Pages
|