llvm-6502/projects/Stacker/lib/compiler
Reid Spencer 3da59db637 For PR950:
The long awaited CAST patch. This introduces 12 new instructions into LLVM
to replace the cast instruction. Corresponding changes throughout LLVM are
provided. This passes llvm-test, llvm/test, and SPEC CPUINT2000 with the
exception of 175.vpr which fails only on a slight floating point output
difference.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@31931 91177308-0d34-0410-b5e6-96231b3b80d8
2006-11-27 01:05:10 +00:00
..
.cvsignore
Lexer.cpp.cvs
Lexer.l
Lexer.l.cvs
Makefile Fix a race condition in the makefile that broke grawp's tester last night. 2006-08-25 17:15:23 +00:00
README
StackerCompiler.cpp For PR950: 2006-11-27 01:05:10 +00:00
StackerCompiler.h For PR797: 2006-08-18 09:07:54 +00:00
StackerParser.cpp.cvs
StackerParser.h.cvs
StackerParser.y
StackerParser.y.cvs

This directory contains a sample language front end for LLVM.

It is a *very* simple/crude implementation of FORTH. It has many
deficiencies but provides enough basics to give you an idea of 
what programming a new language front end for LLVM  looks like.

To keep things simple, Stacker has the following limitations:
1. Only a single, global stack is manipulated.
2. There is no interpretation, everything is compiled.
3. There's no type/bounds checking .. you're on your own.
4. There's no floating point support.
5. Only stdin can be read. Only stdout can be written. No other 
   file I/O is supported.

As such, this isn't a very useful language for anything other than
the most trivial of programs. It is, however, a good learning tool
(for both the author and the student).

Reid Spencer
16 November 2003