Message from discussion
Another todo: Forth as compiler
Newsgroups: perl.perl6.internals
Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.stanford.edu!nntp.perl.org
Return-Path: <d...@sidhe.org>
Mailing-List: contact perl6-internals-h...@perl.org; run by ezmlm
Delivered-To: mailing list perl6-intern...@perl.org
Received: (qmail 77268 invoked by uid 76); 19 Feb 2004 12:53:55 -0000
Received: from x1.develooper.com (HELO x1.develooper.com) (63.251.223.170) by onion.perl.org (qpsmtpd/0.26) with SMTP; Thu, 19 Feb 2004 04:53:55 -0800
Received: (qmail 10701 invoked by uid 225); 19 Feb 2004 12:53:54 -0000
Delivered-To: perl6-intern...@perl.org
Received: (qmail 10659 invoked by alias); 19 Feb 2004 12:53:33 -0000
Received: from [64.252.94.178] (HELO sprite.sidhe.org) (64.252.94.178) by la.mx.develooper.com (qpsmtpd/0.27-dev) with SMTP; Thu, 19 Feb 2004 04:53:33 -0800
Received: (qmail 17214 invoked from network); 19 Feb 2004 13:03:33 -0000
X-Scanned-By: AMaViS-ng at sidhe.org
Received: from unknown (HELO ?10.0.1.2?) (d...@63.120.19.217) by 178.94.252.64.snet.net with SMTP; 19 Feb 2004 13:03:28 -0000
Mime-Version: 1.0
X-Sender: dan@sprite
Message-ID: <a06010201bc5a61a7ddc0@[10.0.1.2]>
Date: Thu, 19 Feb 2004 07:53:11 -0500
To: perl6-intern...@perl.org
Subject: Another todo: Forth as compiler
Content-Type: text/plain; charset="us-ascii" ; format="flowed"
X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on x1.develooper.com
X-Spam-Status: No, hits=-4.9 required=8.0 tests=BAYES_00 autolearn=ham version=2.63
X-SMTPD: qpsmtpd/0.26, http://develooper.com/code/qpsmtpd/
Approved: n...@nntp.perl.org
From: d...@sidhe.org (Dan Sugalski)
While the actual compiler code is evil, doing all sorts of things it
ought not do with absolute addresses (and therefore non-JITtable),
the forth compiler does work, and will compile things. It ought,
actually, to be able to be integrated in as a compiler.
Your task, if you're interested, is to thump it such that forth.pasm
*can* be loaded in as a compiler module such that you can do:
compile P5, ForthCompiler, "1 2 + ."
and have 3 print out. Should be easy, relatively speaking.
--
Dan
--------------------------------------"it's like this"-------------------
Dan Sugalski even samurai
d...@sidhe.org have teddy bears and even
teddy bears get drunk