🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2247

Re: Bad Style Contest - We Have a Winner!

#2247
From: James Kanze US/ESC 60/3/141 #407...
Date: Tue, 12 Mar 1996 01:30
30 lines
2044 bytes
In article <4hv05f$j9i@solutions.solon.com>
schwarz@a2.complang.tuwien.ac.at (Konrad Schwarz) writes:

|> In article <4hqed0$1lc@solutions.solon.com>, kanze@gabi-soft.fr (J. Kanze) writes:
|> |>     [Concerning alloca...]
|> I: As far as I know, implementing alloca via the stack is trivial on
|> I: any general-purpose CPU, but I am interested in hearing of counter examples.
|> |> 
|> |> So what do you do on machines that don't have a stack?

|> General-purpose CPU's have stacks, at least in my book.

IBM mainframes don't have stacks.  Would you not consider them general
purpose CPU's?  (While most modern architectures have stacks, I
suspect that if you looked at all of the general-purpose CPU's in
existance, you'd find more architectures without a stack than with.)

|> How do you
|> implement C on machines that don't have a stack?

The same way you implement any other language, I suppose.  On the one
machine I have any experience with, local frames were allocated and
freed using a mechanism similar to malloc/free.  Once allocated, the
size of the local frame could not be changed.

--
James Kanze         Tel.: (+33) 88 14 49 00        email: kanze@gabi-soft.fr
GABI Software, Sarl., 8 rue des Francs-Bourgeois, F-67000 Strasbourg, France
Conseils, études et réalisations en logiciel orienté objet --
                -- A la recherche d'une activité dans une region francophone
Technical Details
Message-ID: <4i2k2s$8lt@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4fjmdt$og4@solutions.solon.com> <4g27nn$qaj@solutions.solon.com> <4h2thl$1io@solutions.solon.com> <4hgc5l$99s@solutions.solon.com> <4hqed0$1lc@solutions.solon.com> <4hv05f$j9i@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: James Kanze US/ESC 60/3/141 #40763 <kanze@lts.sel.alcatel.de>
Newsgroups: comp.lang.c.moderated
Subject: Re: Bad Style Contest - We Have a Winner!
Date: 11 Mar 1996 19:30:04 -0600
Organization: Digital Solutions
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4i2k2s$8lt@solutions.solon.com>
References: <4fjmdt$og4@solutions.solon.com> <4g27nn$qaj@solutions.solon.com> <4h2thl$1io@solutions.solon.com> <4hgc5l$99s@solutions.solon.com> <4hqed0$1lc@solutions.solon.com> <4hv05f$j9i@solutions.solon.com>
NNTP-Posting-Host: solutions.solon.com