summaryrefslogtreecommitdiffstats
path: root/libacc/tests/testlocal
Commit message (Collapse)AuthorAgeFilesLines
* Rewrite compiler test using python.Jack Palevich2009-06-251-23/+0
| | | | | Nice because we're now checking the output for success/failure automatically rather than by eye.
* Improve local variable scoping.Jack Palevich2009-06-111-1/+3
| | | | | | | | | Until now we faked local variables -- they only worked correctly if there was no overlap between local variables and global variables. Use a symbol table stack instead of a string list. Fix bug with looking up undefined symbols.
* Make otcc code work in x64 based system with 32-bit chroot.Jack Palevich2009-06-091-6/+9
| | | | | | | | | | Set execute permission on code before running it. Handle negative relative offsets for global variables. Add printfs to report the progress of nested compiles. Change way we detect whether we can run the host compiler or not. We used to check if we were running on a 32-bit Linux. Now we check if the executable is a 32-bit Linux executable.
* Make a host version of acc for testing.Jack Palevich2009-06-081-15/+16
| | | | Don't run the code we've compiled unless the -R option is present.
* Switch to ANSI C style C function declarations.Jack Palevich2009-06-041-3/+5
| | | | | | | main(argc, argv) --> int main(int argc, char** argv) Although we accept int, void, and char types, and pointers to same, we actually still treat everything as an int.
* Add support for #pragma foo(bar)Jack Palevich2009-06-041-2/+2
| | | | | Report unsupported/unknown preprocessor directives. Report line number of error rather than character offset.
* Convert libacc into a shared library.Jack Palevich2009-05-221-0/+15
Document internal CodeGenerator interface Move license to a separate license file. Define a public API for calling libacc. Update the "acc" test program to use the public API. Move "main.cpp" and test scripts into the tests subdirectory. Move test data from tests to tests/data Remove stale test data.