🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c++
Article #2749

Re: Array Initialization

#2749
From: Mike Ball
Date: Mon, 27 Nov 1995 15:58
27 lines
1911 bytes
In article <496gnn$hdh@treflan.shout.net> mec@duracef.shout.net writes:
>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?

There are obviously systems beyond your ken :-)

Yes there are processors in use which don't support subtracting from the
stack pointer.  There are processers in use that don't even use stack
pointers.  There are processors in use that use a stack pointer but not
a frame pointer and assume that the relationship between the stack and
the start of the frame is fixed and known.

These really truly exist, along with many other variants.

There are also heap allocation schemes which work in the presence of
longjump, though certainly any longjump will cause other problems in
c++ programs with stack-base objects.  There is even one available
for free, probably from GNU, though I don't remember the details.

-Mike Ball-
SunSoft Developer Products.

[ 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: <49b47a$god@engnews2.Eng.Sun.COM>
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
References: <48t9t7$5c2@engnews1.eng.sun.com> <9532616.4242@mulga.cs.mu.OZ.AU> <496gnn$hdh@treflan.shout.net>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage
From: Michael.Ball@Eng.sun.com (Mike Ball)
Newsgroups: comp.std.c++
Subject: Re: Array Initialization
Date: 27 Nov 1995 15:58:38 GMT
Organization: Sun
Approved: clamage@eng.sun.com (comp.std.c++)
Message-ID: <49b47a$god@engnews2.Eng.Sun.COM>
References: <48t9t7$5c2@engnews1.eng.sun.com> <9532616.4242@mulga.cs.mu.OZ.AU> <496gnn$hdh@treflan.shout.net>
NNTP-Posting-Host: taumet.eng.sun.com
Content-Type: text
X-Nntp-Posting-Host: cygany.eng.sun.com
Content-Length: 1098
X-Lines: 23
Originator: clamage@taumet