🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #595

Re: ANSI C, hardware protection, out-of-bounds pointers

#595
From: Joe English
Date: Fri, 15 Sep 1989 23:50
21 lines
1446 bytes
kdb@chinet.chi.il.us (Karl Botts) writes:
>>Even in such cases, it still wouldn't help with arrays of large objects,
>
>No argument again -- I would never do it myself.  It has been done,
>however.  Take a look at yyparse.c the way it handles the stack pointers (I
>think they are called "yyvs" and "yypvs" or something like that.)  
> [...]
>YACC parsers would fail under certain circumstances on such machines.  I'm
>out on a bit of a limb here, but I'd be interested if anybody has had such
>an experience?

Not likely;  YACC produces some hideous looking code, but
yyvs[-N] is guarranteed to never point below the actual
value stack because of the mathematical priciples by which
the parser is constructed.

Not that this is really relevant to C, but it's worth knowing...

--Joe English

  jeenglis@nunki.usc.edu 
Technical Details
Message-ID: <5097@merlin.usc.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!merlin.usc.edu!nunki.usc.edu!jeenglis
References: <427@maytag.waterloo.edu> <1989Sep5.175411.25203@utzoo.uucp> <9520@chinet.chi.il.us> <10997@smoke.BRL.MIL> <9584@chinet.chi.il.us>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!merlin.usc.edu!nunki.usc.edu!jeenglis
From: jeenglis@nunki.usc.edu (Joe English)
Newsgroups: comp.std.c
Subject: Re: ANSI C, hardware protection, out-of-bounds pointers
Message-ID: <5097@merlin.usc.edu>
Date: 15 Sep 89 23:50:36 GMT
References: <427@maytag.waterloo.edu> <1989Sep5.175411.25203@utzoo.uucp> <9520@chinet.chi.il.us> <10997@smoke.BRL.MIL> <9584@chinet.chi.il.us>
Sender: news@merlin.usc.edu
Reply-To: jeenglis@nunki.usc.edu (Joe English)
Organization: University of Southern California, Los Angeles, CA
Lines: 21