Re: Detecting endless recursion?

Uli Kusterer <witness@t-online.de>
13 Feb 2004 23:56:41 -0500

          From comp.compilers

Related articles
[25 earlier articles]
Re: Detecting endless recursion? nmm1@cus.cam.ac.uk (2004-02-04)
Re: Detecting endless recursion? witness@t-online.de (Uli Kusterer) (2004-02-04)
Re: Detecting endless recursion? joachim.durchholz@web.de (Joachim Durchholz) (2004-02-08)
Re: Detecting endless recursion? alexc@std.com (Alex Colvin) (2004-02-08)
Re: Detecting endless recursion? cymric73@hotmail.com (Maarten D. de Jong) (2004-02-08)
Re: Detecting endless recursion? kenrose@tfb.com (Ken Rose) (2004-02-12)
Re: Detecting endless recursion? witness@t-online.de (Uli Kusterer) (2004-02-13)
Re: Detecting endless recursion? joachim.durchholz@web.de (Joachim Durchholz) (2004-02-26)
Re: Detecting endless recursion? lex@cc.gatech.edu (Lex Spoon) (2004-02-26)
| List of all articles for this month |
From: Uli Kusterer <witness@t-online.de>
Newsgroups: comp.compilers
Date: 13 Feb 2004 23:56:41 -0500
Organization: T-Online
References: 04-01-104 <bvjd1o$aho$1@tom.iecc.com> 04-02-084
Keywords: debug
Posted-Date: 13 Feb 2004 23:56:41 EST

  "Maarten D. de Jong" <cymric73@hotmail.com> wrote:
> While I'm far from an expert in language and compiler design, I happen
> to know that in the programs used to drive the text-oriented Multi
> User Dungeon-games (a.k.a. MUDs) the VM makes use of a concept known
> as an evaluation cost or 'eval cost' for short. Basically it is a
> counter which is increased everytime a VM instruction is executed. If
> the counter exceeds a given amount, an error is thrown and execution
> is aborted.


Maarten,


  I can't quite comprehend how that works. When would that counter be
reset? I can't really come up with a place to reset this counter that
wouldn't catch lots of legitimate code. 300 000 loop iterations are well
within the reasonable range for a general-purpose programming language
for loops.


  Do you know more? A link to an article describing this?


Thanks for any clues,
-- Uli
http://www.zathras.de


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.