If you wish to compile the compiler yourself, do the following:
javac -classpath classes -d classes -sourcepath src/coins/driver/Driver.java
where '/' should be replaced by the path separator of your platform.
You actually can place your class files anywhere.On UNIX running a sh-compatible shell, type
export CLASSPATH=$HOME/Java/coins-1.x.y/classes
## Change according to your environment.
or for Windows
SET CLASSPATH=c:\home\Java\coins-1.x.y\classes
## Change according to your environment.
Then on either platform type
java coins.driver.Driver -S xxx.c
or
java -classpath ./classes coins.driver.Driver -S xxx.c
To specify the target machine add the option "-b arch"
to the above command, where arch is sparc, sparc-v8, x86,
arm, mips, sh4, or ppc. The default is "sparc".Debug information will be printed if the following command is used.
java coins.driver.Driver -S -coins:trace=Sym.1/HIR.1/back xxx.c
or
java -classpath ./classes coins.driver.Driver -S -coins:trace=Sym.1/HIR.1/back xxx.c
(if class files are under 'classes')
where, "trace= ..." specifies debug control and the number "1" in "Sym.1",
etc. is a trace level. "Sym" in "Sym.1" is a trace category. Large
trace categories number (e.g. 500, 10000) may produce a huge amount
of debug print. Object code (xxx.s) will be generated on the same directory as that of source program xxx.c. It can be executed by
cc xxx.s; ./a.out or ./a.exe
For more information on C compiler driver coins.driver.Driver, see
2. How to use the Compiler Driver.
For more detail, see