POV-Ray : Newsgroups : povray.off-topic : Theoretical programming question : Re: Theoretical programming question Server Time
14 Nov 2024 18:30:01 EST (-0500)
  Re: Theoretical programming question  
From: Darren New
Date: 30 Oct 2007 22:59:09
Message: <4727fd8d$1@news.povray.org>
Warp wrote:
> Darren New <dne### [at] sanrrcom> wrote:
>> Are you saying the only operations to put data *on* the stack are DUP 
>> and PUSH IMMEDIATE?  Seems like it would be difficult to do much, yah.
> 
>   It supports pushing characters (as their ascii values) in a string too,
> but that isn't much of a help in this case.

I take it you mean in the same way you could just code a series of "push 
this integer literal" instruction?

I don't see how you can do it, then.  Imagine a 10,000 state turing 
machine. You wouldn't be able to access state 5000's instruction without 
wiping out at least instructions 5003-10000.

Maybe there's something exceptionally clever you could do, but with 
limited-width registers (i.e., top-of-stack) it would be hard to know what.

Out of curiousity, what kind of language or machine is this?  Or is this 
like some contest/homework style problem?

-- 
   Darren New / San Diego, CA, USA (PST)
     Remember the good old days, when we
     used to complain about cryptography
     being export-restricted?


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.