Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

commit the latest changes...

  • Loading branch information...
commit c4d077b89445f8323d4350cbb23a60410c5e0cff 1 parent 5264e6a
@eudisd authored
@@ -9,14 +9,15 @@ By Eudis Duran
You can build the source with a single command.
Make sure you are in the root src directory, and
-type: "make" This will build both the compiler
+type: "make all" This will build both the compiler
and virtual machine. The resulting executables will
be placed in the root binary folder for the project.
The programs are named "c" for the compiler, and "cvm" for
the virtual machine.
### Example Programs/Tests
+Once you have built the compiler and virtual machine, both
+executables are also copied to the bin folder under 'examples.'
The example programs can be built in a similar fasion.
Change directory to examples/ and execute a "make"
call. That will build all the examples for execution.
@@ -25,14 +26,10 @@ to build the examples, and will produce VM executables
in the bin folder under the examples folders.
### Windows:
+Not tested.
-Assuming you have visual C++, building the compiler is
-only a matter of creating a project and adding the files
-to that project and building. The compiler is written in
-ansi C, so it should work just fine (I have not tested it).
## Usage:
To compile a source file, first make sure that it adheres
to the small C subset that is specified in the Documentation
file, as not all of C is implemented yet.
1  examples/data
@@ -1 +0,0 @@
29 src/compiler/test.c
@@ -1,29 +0,0 @@
-/* This source file demonstrates integer array declaration and
- use. */
- * By: Eudis Duran
- * Spring 2011
- */
-int main()
- int x, sorted;
- x = 20;
- int a[5];
- a[0] = 10;
- /* First we print the original x */
- printf(x);
- /* Next, we print the newly assigned x */
- x = a[0];
- printf (x);
1  src/compiler/test.h
@@ -1 +0,0 @@
Please sign in to comment.
Something went wrong with that request. Please try again.