Article View: comp.std.c++
Article #2771Re: Array Initialization
From: Dick Menninger
Date: Tue, 28 Nov 1995 00:12
Date: Tue, 28 Nov 1995 00:12
29 lines
2157 bytes
2157 bytes
> ==========Michael Elizabeth Chastain, 11/25/95========== > I say 'may have to' because every processor I know can implement > variable-sized stack frames by subtracting an appropriate value from > the stack pointer at the appropriate time. But what about processors I > don't know about? Are there truly any processors in use which don't > support subtracting a computed value from the stack pointer? Subtract implies stack direction. There have been machines with stacks that increased in address instead of decreased in address. Have they all really disappeared from heavy use? I am rusty on current machine architectures, but an amazing variety of architectures have existed, including some for which the address of a memory location varied according to the width of the access. Also, how about the case of several of these in one stack frame. The "start" (i.e., address) of some is affected by the size of others rather than just being an offset into the stack frame from the frame pointer. That makes the solution messier to do and starts favoring the various heap schemes for this as preserving fixed frame offsets is usually a very good thing to do. Good Day Dick Dick.Menninger@DaytonOH.ATTGIS.COM --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<DIpo69.DGF@falcon.daytonoh.attgis.com>Path:
arc1-ca.pugleaf.net!in2.uu.net!bounce-backReferences:
<496gnn$hdh@treflan.shout.net>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!in2.uu.net!bounce-back Date: 28 Nov 95 00:12:20 GMT Approved: fjh@cs.mu.oz.au Newsgroups: comp.std.c++ From: Dick Menninger <Dick.Menninger@daytonoh.attgis.com> Subject: Re: Array Initialization Message-ID: <DIpo69.DGF@falcon.daytonoh.attgis.com> Reply-To: mennid <Dick.Menninger@daytonoh.attgis.com> Organization: AT&T Global Information Solutions X-Newsreader: DiscussIT 2.5.1.3 for MS Windows [AT&T Software Products Division] References: <496gnn$hdh@treflan.shout.net> X-Original-Date: Mon, 27 Nov 1995 16:51:44 GMT X-Auth: PGPMoose V1.1 PGP comp.std.c++ iQBFAgUBMLpUDOEDnX0m9pzZAQEXHQF+PRXeMf9dQPy8dtsq+OtTK6XrbCT8vgtK +o1Z5yMnyGinm53kKLveT2b1wb6y2o11 =Krso