comp.lang.ada
 help / color / mirror / Atom feed
From: Eryndlia Mavourneen <eryndlia@gmail.com>
Subject: Re: Size optimization for objects
Date: Fri, 19 Jul 2013 06:20:32 -0700 (PDT)
Date: 2013-07-19T06:20:32-07:00	[thread overview]
Message-ID: <49806f1c-e5e7-4484-aa93-c68964072e5b@googlegroups.com> (raw)
In-Reply-To: <ksah9e$oqp$1@loke.gir.dk>

On Friday, July 19, 2013 12:02:38 AM UTC-5, Randy Brukardt wrote:
> "Rego, P." <pvrego@gmail.com> wrote in message 
> 
> news:ca34e347-b53e-4119-b6d1-0cba6f40be79@googlegroups.com...
> ...
> > However when I add all the column, the result also seems incoherent, 
> > around 8GB.
> > The real bla.out generated is ~478kB.
> 
> I wouldn't expect the *uninitialized* data to have any effect on the size of 
> the .out file, either. The contents of the .o files are combined to create 
> the .out, and I don't think the uninitialized data appears in it, either, 
> just being a length given to the system loader. (That's definitely how it 
> works on Windows, and Windows NT copied [not very well] a lot of Unix stuff, 
> mainly because they started with an existing Unix targeted C compiler.)
> 
>                              Randy.

That's also the way it works on VMS and RSX.  Depending on the loader, uninitialized data is typically left uninitialized (you get whatever happens to be in that memory location upon loading) or zero-filled.

The development of the Win32 kernel, and I suppose a number of other parts of Windows NT, were led by Dave Cutler, who did the design of RSX (on the PDP-11) and then VMS on the VAX (CISC) and Alpha (RISC) machines.  This is a big reason you have device driver forking in Windows, which was introduced into RSX-11M first and then later used in VMS, instead of some other scheme (such as privileged, high-priority tasks for processing data emitted by device drivers as used in RSX-11D, also designed by Dave).

-- Eryndlia (a.k.a. KK1T)

      reply	other threads:[~2013-07-19 13:20 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-28 19:49 Size optimization for objects Rego, P.
2013-06-29  7:10 ` Georg Bauhaus
2013-07-01 13:56   ` Rego, P.
2013-07-01 16:49     ` G.B.
2013-06-29  9:48 ` Jack Daniels
2013-07-01 13:58   ` Rego, P.
2013-06-30 11:34 ` rrr.eee.27
2013-07-01 14:35   ` Rego, P.
2013-07-01 15:28     ` Niklas Holsti
2013-07-01 16:35       ` Rego, P.
2013-07-01 18:21         ` Niklas Holsti
2013-07-02 20:32           ` Rego, P.
2013-07-06 16:06             ` Niklas Holsti
2013-07-10 11:57               ` Rego, P.
2013-07-10 11:58                 ` Rego, P.
2013-07-11  9:10                   ` Niklas Holsti
2013-07-18 14:09                     ` Rego, P.
2013-07-18 14:10                       ` Rego, P.
2013-07-11  8:35                 ` Niklas Holsti
2013-07-12  0:35                   ` Randy Brukardt
2013-07-18 15:16                     ` Rego, P.
2013-07-18 15:12                   ` Rego, P.
2013-07-18 17:57                     ` Niklas Holsti
2013-07-19  5:02                     ` Randy Brukardt
2013-07-19 13:20                       ` Eryndlia Mavourneen [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox