-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.bash
33 lines (26 loc) · 957 Bytes
/
build.bash
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
mkdir working
./build/quon compiler.qon --ansi3 > working/quon.c
rm build/quon_new
gcc -O2 -flto -Wno-parentheses-equality -Wno-format-security working/quon.c -Wl,-stack_size,20000000 -o build/quon_new
build/quon_new --test
#build/quon_new compiler.qon
#mkdir working
#build/quon_new compiler.qon --java > working/test.java
#cd working
#mkdir quonverter
#java -Xss100M -cp . quonverter/MyProgram --test
#javac -d quonverter test.java
#jar -cvfm MyProgram.jar MANIFEST.MF quonverter/*.class
#java -Xss100M -jar MyProgram.jar --test
#cd ..
#./quon_new examples/mandelbrot.qon --java > test.java
#rm -r quonverter
#mkdir quonverter
#javac -d ./ test.java
#java -Xss100M -cp . quonverter/MyProgram --test
#jar -cvfm mandelbrot.jar MANIFEST.MF quonverter/*.class
#java -Xss100M -jar mandelbrot.jar --test
#./build/quon_new compiler.qon --lua > test.lua
#lua build/test.lua compiler.qon --ast
echo Compiled working/quon.c into build/quon_new