AspeCt-oriented C Download
Download link is at the bottom of this page.
Supported Platforms
- Linux
- Mac/OS X
- Solaris
- Windows (under Cygwin)
ACC Generated Code Executed on the Following Platforms
- under all of the above
- under and within OS/161 (teaching Operating System running on a MIPS-1 instruction set)
- within NUT/OS on an ATmega 128 RISC micro-controller
If you build AspeCt-oriented C successfully on other platforms or successfully run ACC generated
code on an exotic platform, please
contact us.
A Larger Stress Testing Experiment
acc V 0.5 was successfully used to advice all functions of
gcc,
g++,
c++, and
gcj.
#include <stdio.h>
before():call($ $(...)){
fprintf(stderr, "%s\n", this->funcName);
}
fprintf is used to print to standard error since gcc uses standard out to create intermediate files.
Build and Test
The following description assumes a Linux environment and a
sufficiently recent installation of
gcc (version 2.9 or higher.)
You can build the ACC compiler and run the test cases as follows:
>tar -xvf ACC.tar <--- unzip the tar file
>cd ACC
>make <--- build and run the test cases
...
result: <--- build is successful and all test cases pass
total=38, succeed = 38 , fail = 0
The ACC compiler resides in the src/working directory with name acc.
Note, some of our builds are distributed as compressed ".bz2" files. To uncompressed,
either use bunzip or "tar -j".
To uncompess, either use
>tar -jvf ACC.tar.bz2 <--- to uncompress the tar file
or
>bunzip ACC.tar.bz2 <--- to uncompress the tar file
and then follow the build steps above.
Special Targets
The following special build targets are supported:
- 'build' : only builds the ACC compiler.
- 'test' : only runs the test cases, assuming the ACC compiler is already built.
- 'clean' : removes the ACC compiler and working directory created when running the test cases.
runTest Script
Optionally, you could run individual or all test cases by using
the
runTest script under the
ACC/test directory, like
this:
>cd ACC/test
>./runTest case01 case02 <--- run individual test cases
or
>./runTest case* <--- run all test cases
If the ACC compiler is not in the default directory, set
ACCTEST
variable to point to the ACC compiler before running the
runTest
script as follows:
>ACCTEST=~/myacc/acc
>export ACCTEST
>cd ACC/test
>./runTest case*
AspeCt-oriented C Download
Click to the following links to get the tar file for AspeCt-oriented C, which
includes sources, test cases and manual. To date, AspeCt-oriented C
has been downloaded times.
AspeCt-oriented C is continously evolving. New features are gradually
becoming available. If you would like to be informed about
AspeCt-oriented C News, such as new releases, major bug fixes
etcetera, please
contact us to join the
AspeCt-oriented C mailing list. The mailing list is low traffic and is
only used for disseminating AspeCt-oriented C News.