comp.lang.ada
 help / color / mirror / Atom feed
From: "Thierry Lelegard" <lelegard@club-internet.fr>
Subject: Re: Y21C Bug
Date: 2000/01/12
Date: 2000-01-12T21:30:17+00:00	[thread overview]
Message-ID: <85irp9$11m$1@front3.grolier.fr> (raw)
In-Reply-To: 387BC729.9F02FEF1@mail.com

> > I think on DEC Ada on VAX/VMS, the executable file would *not* contain
> > all those zeros -- just an indication that the OS should create them as
> > zero if and when necessary.  (Assuming One_Zillion is made small enough
> > that the compiler doesn't blow up.)
> 
> I think it does, even it they are all zeros. I ran in that problem a few times.

Yes it does. If you had left the variable uninitialized (on an Ada
perspective), then the variable would have been allocated in
a "demand zero" section (no allocation in executable). Since
you provided an explicit initial value, the compiler/linker placed
it into a "copy on reference" section which contains the initial
values. Of course, the compiler could make a special optimization
which consists in inspecting every single byte of this initial
value and if they are all zeroes then place the variable into
a "demand zero" section. But, it appears that this optimization
is not made.

By the way, for some obscure reasons I used to know (but that I
forgot), the VMS linker never creates "demand zero" sections in
shareable images ("DLL" for users of dummy OS). They are turned
into "copy on reference" sections filled with zeroes. "Demand zero"
sections apply to executable images only.

-Thierry
________________________________________________________
Thierry Lelegard, Paris, France
E-mail: lelegard@club-internet.fr







  reply	other threads:[~2000-01-12  0:00 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-02  0:00 Y21C Bug reason67
2000-01-02  0:00 ` Robert Dewar
2000-01-03  0:00   ` Tarjei T. Jensen
2000-01-03  0:00     ` Robert A Duff
2000-01-04  0:00       ` Robert Dewar
2000-01-04  0:00         ` Charles Hixson
2000-01-04  0:00           ` Keith Thompson
2000-01-05  0:00           ` Robert Dewar
2000-01-05  0:00             ` Y21C Bug :-) Charles Hixson
2000-01-06  0:00               ` Ted Dennison
2000-01-07  0:00                 ` Keith Thompson
2000-01-07  0:00                   ` Robert A Duff
2000-01-05  0:00           ` Y21C Bug Robert Dewar
2000-01-04  0:00       ` Tarjei T. Jensen
2000-01-04  0:00         ` Samuel Tardieu
2000-01-04  0:00         ` Robert A Duff
2000-01-04  0:00         ` Robert Dewar
2000-01-05  0:00           ` Tarjei T. Jensen
2000-01-05  0:00             ` Al Christians
2000-01-06  0:00               ` Tarjei T. Jensen
2000-01-06  0:00                 ` Robert Dewar
2000-01-06  0:00                   ` Robert A Duff
2000-01-06  0:00                     ` Larry Kilgallen
2000-01-07  0:00                     ` Florian Weimer
2000-01-07  0:00                       ` Robert A Duff
2000-01-07  0:00                         ` Robert Dewar
2000-02-04  0:00                           ` Florian Weimer
2000-02-04  0:00                             ` Robert A Duff
2000-02-04  0:00                               ` Florian Weimer
2000-01-11  0:00                         ` Mats Weber
2000-01-11  0:00                           ` Robert A Duff
2000-01-12  0:00                             ` Mats Weber
2000-01-12  0:00                               ` Thierry Lelegard [this message]
2000-01-13  0:00                                 ` Mats Weber
2000-01-13  0:00                                 ` Robert A Duff
2000-01-13  0:00                                   ` Larry Kilgallen
2000-01-13  0:00                                   ` Thierry Lelegard
     [not found]                               ` <387dfb1e.cbbf14c7@mail.com>
2000-01-13  0:00                                 ` Larry Kilgallen
2000-01-11  0:00                     ` Mats Weber
2000-01-07  0:00                   ` Tarjei T. Jensen
2000-01-07  0:00                     ` Robert Dewar
2000-01-06  0:00               ` Robert Dewar
2000-01-05  0:00             ` Robert Dewar
2000-01-06  0:00               ` Georg Bauhaus
2000-01-06  0:00                 ` Tarjei T. Jensen
2000-01-06  0:00               ` Tarjei T. Jensen
2000-01-06  0:00                 ` Larry Kilgallen
2000-01-06  0:00               ` Richard D Riehle
2000-01-03  0:00     ` Jeff Creem
2000-01-03  0:00       ` Tarjei T. Jensen
replies disabled

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