Stack Machine and Parameters

"Jens Kallup" <>
29 Nov 2004 00:27:15 -0500

          From comp.compilers

Related articles
Stack Machine and Parameters (Jens Kallup) (2004-11-29)
Re: Stack Machine and Parameters (amal) (2004-12-16)
| List of all articles for this month |

From: "Jens Kallup" <>
Newsgroups: comp.compilers
Date: 29 Nov 2004 00:27:15 -0500
Organization: T-Online
Keywords: code
Posted-Date: 29 Nov 2004 00:27:15 EST

Hello Newsgroup,

I trying to program an interpreter in stack machine behavior.
It works fine at now - IF ELSE ENDIF FOR loops and
variable definitions like "b0 = 100".
But now, I reached the point where parameters of functions
should be interpreted. I don't know how it possible.
I pushed parameters on stack of functions that are fixed and
know by me - but how works with unknow procedure

Here a little code snippet of the parsed interpreter code:

enter main
    npush 10
    vpush b0
    nassign b0
    call @test

Thank you for helping messages
Jens Kallup

Post a followup to this message

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