From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,25e7db2f1ea1e260 X-Google-Attributes: gid103376,public From: "Theodore E. Dennison" Subject: Re: Constants: how are they allocated? Date: 1996/05/06 Message-ID: <318E6C33.6201DD56@escmail.orl.mmc.com>#1/1 X-Deja-AN: 153368597 references: <4ml2s6$bis@dewey.csun.edu> content-type: text/plain; charset=us-ascii organization: Lockheed Martin Information Systems mime-version: 1.0 newsgroups: comp.lang.ada x-mailer: Mozilla 2.0 (X11; I; SunOS 4.1.3_U1 sun4m) Date: 1996-05-06T00:00:00+00:00 List-Id: Robert A Duff wrote: > > In article <4ml2s6$bis@dewey.csun.edu>, > justin gombos wrote: > >Oops.. I botched on the question. Let me re-word it. If a constant is > >defined and allocated at runtime, where is it stored? ie. in the case > >that a constant is assigned to a function or expression containing > >variables. > > In most compilers, such constants are allocated just like variables. Unless, of course, the constant is static (on some compilers). And of course some compilers go a bit beyond the LRM definition of "static" in deciding which constants to treat this way. Again, this is all really implementation-defined. -- T.E.D. | Work - mailto:dennison@escmail.orl.mmc.com | | Home - mailto:dennison@iag.net | | URL - http://www.iag.net/~dennison |