mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 04:02:41 +01:00
4bafa71dc1
Turn on -Wunused and -Wno-unused-parameter. Clean up most of the resulting fall out by removing unused variables. Remaining warnings have to do with unused functions (I didn't want to delete code without review) and unused variables in generated code. Maintainers should clean up the remaining issues when they see them. All changes pass DejaGnu tests and Olden. llvm-svn: 31380 |
||
---|---|---|
.. | ||
.cvsignore | ||
Lexer.cpp.cvs | ||
Lexer.l | ||
Lexer.l.cvs | ||
Makefile | ||
README | ||
StackerCompiler.cpp | ||
StackerCompiler.h | ||
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