├── .gitattributes ├── .gitignore ├── CMakeLists.txt ├── LICENSE.md ├── README.md ├── doc └── scc.gif ├── lib.h ├── sas.c ├── scc.c ├── scpp.c ├── sim86.c ├── swar.c └── test ├── CMakeLists.txt ├── dossim.c ├── sas ├── CMakeLists.txt ├── sasm.asm ├── sasm.ref ├── scc-self.asm └── scc-self.ref ├── scc ├── CMakeLists.txt ├── array.c ├── bug.c ├── comma.c ├── condop.c ├── deadcode.c ├── decl.c ├── dowhile.c ├── enum.c ├── lgoto.c ├── scc10.c ├── scc10.ref ├── sizeof.c ├── strlit.c ├── struct.c ├── switch.c ├── testlib.c ├── typedef.c ├── union.c └── unsigned.c ├── scpp ├── CMakeLists.txt ├── inc1.h ├── scc0.in ├── scc0.ref ├── test00.in ├── test00.ref ├── test01.in ├── test01.ref ├── test02.in ├── test02.ref ├── test03.in ├── test03.ref ├── test04.in ├── test04.ref ├── test05.in ├── test05.ref ├── test06.in ├── test06.ref ├── test07.in ├── test07.ref ├── test08.in ├── test08.ref ├── test09.in ├── test09.ref ├── test10.in ├── test10.ref ├── test11.in ├── test11.ref ├── test12.in ├── test12.ref ├── test13.in ├── test13.ref ├── test14.in ├── test14.ref ├── test15.in ├── test15.ref ├── test16.in ├── test16.ref ├── test17.in ├── test17.ref ├── test18.in ├── test18.ref ├── test19.in ├── test19.ref ├── test20.in ├── test20.ref ├── test21.in ├── test21.ref ├── test22.in ├── test22.ref ├── test23.in ├── test23.ref ├── test24.in ├── test24.ref ├── test25.in ├── test25.ref ├── test26.in ├── test26.ref ├── test27.in ├── test27.ref ├── test28.in ├── test28.ref ├── test29.in ├── test29.ref ├── test30.in ├── test30.ref ├── test31.in ├── test31.ref ├── test32.in ├── test32.ref ├── test33.in ├── test33.ref ├── test34.in ├── test34.ref ├── test35.in ├── test35.ref ├── test36.in ├── test36.ref ├── test37.in ├── test37.ref ├── test38.in ├── test38.ref ├── test39.in ├── test39.ref ├── test40.in ├── test40.ref ├── test41.in ├── test41.ref ├── test42.in ├── test42.ref ├── test43.in ├── test43.ref ├── test44.in ├── test44.ref ├── test45.in ├── test45.ref ├── test46.in ├── test46.ref ├── test47.in ├── test47.ref ├── test48.in ├── test48.ref ├── test49.in ├── test49.ref ├── test50.in ├── test50.ref ├── test51.in ├── test51.ref ├── test52.in ├── test52.ref ├── test53.in ├── test53.ref ├── test54.in ├── test54.ref ├── test55.in ├── test55.ref ├── test56.in ├── test56.ref ├── test57.in ├── test57.ref ├── test58.in ├── test58.ref ├── test59.in ├── test59.ref ├── test60.in ├── test60.ref ├── test61.in ├── test61.ref ├── test62.in ├── test62.ref ├── test63.in └── test63.ref └── sim86 ├── CMakeLists.txt └── test.asm /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/.gitignore -------------------------------------------------------------------------------- /CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/CMakeLists.txt -------------------------------------------------------------------------------- /LICENSE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/LICENSE.md -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/README.md -------------------------------------------------------------------------------- /doc/scc.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/doc/scc.gif -------------------------------------------------------------------------------- /lib.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/lib.h -------------------------------------------------------------------------------- /sas.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/sas.c -------------------------------------------------------------------------------- /scc.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/scc.c -------------------------------------------------------------------------------- /scpp.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/scpp.c -------------------------------------------------------------------------------- /sim86.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/sim86.c -------------------------------------------------------------------------------- /swar.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/swar.c -------------------------------------------------------------------------------- /test/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/CMakeLists.txt -------------------------------------------------------------------------------- /test/dossim.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/dossim.c -------------------------------------------------------------------------------- /test/sas/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/sas/CMakeLists.txt -------------------------------------------------------------------------------- /test/sas/sasm.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/sas/sasm.asm -------------------------------------------------------------------------------- /test/sas/sasm.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/sas/sasm.ref -------------------------------------------------------------------------------- /test/sas/scc-self.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/sas/scc-self.asm -------------------------------------------------------------------------------- /test/sas/scc-self.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/sas/scc-self.ref -------------------------------------------------------------------------------- /test/scc/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/CMakeLists.txt -------------------------------------------------------------------------------- /test/scc/array.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/array.c -------------------------------------------------------------------------------- /test/scc/bug.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/bug.c -------------------------------------------------------------------------------- /test/scc/comma.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/comma.c -------------------------------------------------------------------------------- /test/scc/condop.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/condop.c -------------------------------------------------------------------------------- /test/scc/deadcode.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/deadcode.c -------------------------------------------------------------------------------- /test/scc/decl.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/decl.c -------------------------------------------------------------------------------- /test/scc/dowhile.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/dowhile.c -------------------------------------------------------------------------------- /test/scc/enum.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/enum.c -------------------------------------------------------------------------------- /test/scc/lgoto.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/lgoto.c -------------------------------------------------------------------------------- /test/scc/scc10.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/scc10.c -------------------------------------------------------------------------------- /test/scc/scc10.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/scc10.ref -------------------------------------------------------------------------------- /test/scc/sizeof.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/sizeof.c -------------------------------------------------------------------------------- /test/scc/strlit.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/strlit.c -------------------------------------------------------------------------------- /test/scc/struct.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/struct.c -------------------------------------------------------------------------------- /test/scc/switch.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/switch.c -------------------------------------------------------------------------------- /test/scc/testlib.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/testlib.c -------------------------------------------------------------------------------- /test/scc/typedef.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/typedef.c -------------------------------------------------------------------------------- /test/scc/union.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/union.c -------------------------------------------------------------------------------- /test/scc/unsigned.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scc/unsigned.c -------------------------------------------------------------------------------- /test/scpp/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/CMakeLists.txt -------------------------------------------------------------------------------- /test/scpp/inc1.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/inc1.h -------------------------------------------------------------------------------- /test/scpp/scc0.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/scc0.in -------------------------------------------------------------------------------- /test/scpp/scc0.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/scc0.ref -------------------------------------------------------------------------------- /test/scpp/test00.in: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/scpp/test00.ref: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/scpp/test01.in: -------------------------------------------------------------------------------- 1 | #define X 42 2 | X X 3 | -------------------------------------------------------------------------------- /test/scpp/test01.ref: -------------------------------------------------------------------------------- 1 | 42 42 -------------------------------------------------------------------------------- /test/scpp/test02.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test02.in -------------------------------------------------------------------------------- /test/scpp/test02.ref: -------------------------------------------------------------------------------- 1 | 42+1*2 -------------------------------------------------------------------------------- /test/scpp/test03.in: -------------------------------------------------------------------------------- 1 | #if 1 2 | 42 3 | #endif 4 | -------------------------------------------------------------------------------- /test/scpp/test03.ref: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /test/scpp/test04.in: -------------------------------------------------------------------------------- 1 | #if 0 2 | 42 3 | #endif 4 | -------------------------------------------------------------------------------- /test/scpp/test04.ref: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/scpp/test05.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test05.in -------------------------------------------------------------------------------- /test/scpp/test05.ref: -------------------------------------------------------------------------------- 1 | 31 -------------------------------------------------------------------------------- /test/scpp/test06.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test06.in -------------------------------------------------------------------------------- /test/scpp/test06.ref: -------------------------------------------------------------------------------- 1 | (42 + 1) + 2 2 | 31 -------------------------------------------------------------------------------- /test/scpp/test07.in: -------------------------------------------------------------------------------- 1 | //10 2 | 42 3 | -------------------------------------------------------------------------------- /test/scpp/test07.ref: -------------------------------------------------------------------------------- 1 | 2 | 42 -------------------------------------------------------------------------------- /test/scpp/test08.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test08.in -------------------------------------------------------------------------------- /test/scpp/test08.ref: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /test/scpp/test09.in: -------------------------------------------------------------------------------- 1 | 2 2 | + 3 3 | -------------------------------------------------------------------------------- /test/scpp/test09.ref: -------------------------------------------------------------------------------- 1 | 2 2 | + 3 -------------------------------------------------------------------------------- /test/scpp/test10.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test10.in -------------------------------------------------------------------------------- /test/scpp/test10.ref: -------------------------------------------------------------------------------- 1 | 2 + ((2)+1) -------------------------------------------------------------------------------- /test/scpp/test11.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test11.in -------------------------------------------------------------------------------- /test/scpp/test11.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test11.ref -------------------------------------------------------------------------------- /test/scpp/test12.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test12.in -------------------------------------------------------------------------------- /test/scpp/test12.ref: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /test/scpp/test13.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test13.in -------------------------------------------------------------------------------- /test/scpp/test13.ref: -------------------------------------------------------------------------------- 1 | 60 -------------------------------------------------------------------------------- /test/scpp/test14.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test14.in -------------------------------------------------------------------------------- /test/scpp/test14.ref: -------------------------------------------------------------------------------- 1 | 42 -------------------------------------------------------------------------------- /test/scpp/test15.in: -------------------------------------------------------------------------------- 1 | #if defined(X) 2 | 42 3 | #endif -------------------------------------------------------------------------------- /test/scpp/test15.ref: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/scpp/test16.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test16.in -------------------------------------------------------------------------------- /test/scpp/test16.ref: -------------------------------------------------------------------------------- 1 | 1 2 | 3 -------------------------------------------------------------------------------- /test/scpp/test17.in: -------------------------------------------------------------------------------- 1 | #if X 2 | 42 3 | #endif -------------------------------------------------------------------------------- /test/scpp/test17.ref: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/scpp/test18.in: -------------------------------------------------------------------------------- 1 | #if 0x2A==42 2 | 1 3 | #endif -------------------------------------------------------------------------------- /test/scpp/test18.ref: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /test/scpp/test19.in: -------------------------------------------------------------------------------- 1 | #if 2==(1?2:3) 2 | 1 3 | #endif -------------------------------------------------------------------------------- /test/scpp/test19.ref: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /test/scpp/test20.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test20.in -------------------------------------------------------------------------------- /test/scpp/test20.ref: -------------------------------------------------------------------------------- 1 | 50 -------------------------------------------------------------------------------- /test/scpp/test21.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test21.in -------------------------------------------------------------------------------- /test/scpp/test21.ref: -------------------------------------------------------------------------------- 1 | 123 -------------------------------------------------------------------------------- /test/scpp/test22.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test22.in -------------------------------------------------------------------------------- /test/scpp/test22.ref: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /test/scpp/test23.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test23.in -------------------------------------------------------------------------------- /test/scpp/test23.ref: -------------------------------------------------------------------------------- 1 | 1 -------------------------------------------------------------------------------- /test/scpp/test24.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test24.in -------------------------------------------------------------------------------- /test/scpp/test24.ref: -------------------------------------------------------------------------------- 1 | 123 2 | 42 -------------------------------------------------------------------------------- /test/scpp/test25.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test25.in -------------------------------------------------------------------------------- /test/scpp/test25.ref: -------------------------------------------------------------------------------- 1 | 123 2 | 42 -------------------------------------------------------------------------------- /test/scpp/test26.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test26.in -------------------------------------------------------------------------------- /test/scpp/test26.ref: -------------------------------------------------------------------------------- 1 | X + 1 2 | (1+2) -------------------------------------------------------------------------------- /test/scpp/test27.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test27.in -------------------------------------------------------------------------------- /test/scpp/test27.ref: -------------------------------------------------------------------------------- 1 | 1+2+3 -------------------------------------------------------------------------------- /test/scpp/test28.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test28.in -------------------------------------------------------------------------------- /test/scpp/test28.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test28.ref -------------------------------------------------------------------------------- /test/scpp/test29.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test29.in -------------------------------------------------------------------------------- /test/scpp/test29.ref: -------------------------------------------------------------------------------- 1 | 42+60 -------------------------------------------------------------------------------- /test/scpp/test30.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test30.in -------------------------------------------------------------------------------- /test/scpp/test30.ref: -------------------------------------------------------------------------------- 1 | 42-2+1 -------------------------------------------------------------------------------- /test/scpp/test31.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test31.in -------------------------------------------------------------------------------- /test/scpp/test31.ref: -------------------------------------------------------------------------------- 1 | ((((42)*2))+1) -------------------------------------------------------------------------------- /test/scpp/test32.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test32.in -------------------------------------------------------------------------------- /test/scpp/test32.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test32.ref -------------------------------------------------------------------------------- /test/scpp/test33.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test33.in -------------------------------------------------------------------------------- /test/scpp/test33.ref: -------------------------------------------------------------------------------- 1 | 42+1 -------------------------------------------------------------------------------- /test/scpp/test34.in: -------------------------------------------------------------------------------- 1 | \ 123 \ 2 | -------------------------------------------------------------------------------- /test/scpp/test34.ref: -------------------------------------------------------------------------------- 1 | \ 123 \ -------------------------------------------------------------------------------- /test/scpp/test35.in: -------------------------------------------------------------------------------- 1 | #define X(a,b) a\ 2 | +b 3 | X(1,2) -------------------------------------------------------------------------------- /test/scpp/test35.ref: -------------------------------------------------------------------------------- 1 | 1+2 -------------------------------------------------------------------------------- /test/scpp/test36.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test36.in -------------------------------------------------------------------------------- /test/scpp/test36.ref: -------------------------------------------------------------------------------- 1 | do {if(!(1-1)) Fail(); } while (0) -------------------------------------------------------------------------------- /test/scpp/test37.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test37.in -------------------------------------------------------------------------------- /test/scpp/test37.ref: -------------------------------------------------------------------------------- 1 | (4 + foo) -------------------------------------------------------------------------------- /test/scpp/test38.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test38.in -------------------------------------------------------------------------------- /test/scpp/test38.ref: -------------------------------------------------------------------------------- 1 | (4+(2*x)) 2 | (2*(4+y)) -------------------------------------------------------------------------------- /test/scpp/test39.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test39.in -------------------------------------------------------------------------------- /test/scpp/test39.ref: -------------------------------------------------------------------------------- 1 | (2*(1)) -------------------------------------------------------------------------------- /test/scpp/test40.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test40.in -------------------------------------------------------------------------------- /test/scpp/test40.ref: -------------------------------------------------------------------------------- 1 | fprintf (stderr, "%s %d", p, 35) -------------------------------------------------------------------------------- /test/scpp/test41.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test41.in -------------------------------------------------------------------------------- /test/scpp/test41.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test41.ref -------------------------------------------------------------------------------- /test/scpp/test42.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test42.in -------------------------------------------------------------------------------- /test/scpp/test42.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test42.ref -------------------------------------------------------------------------------- /test/scpp/test43.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test43.in -------------------------------------------------------------------------------- /test/scpp/test43.ref: -------------------------------------------------------------------------------- 1 | bar, "x" -------------------------------------------------------------------------------- /test/scpp/test44.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test44.in -------------------------------------------------------------------------------- /test/scpp/test44.ref: -------------------------------------------------------------------------------- 1 | 42 + x -------------------------------------------------------------------------------- /test/scpp/test45.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test45.in -------------------------------------------------------------------------------- /test/scpp/test45.ref: -------------------------------------------------------------------------------- 1 | "foo" 2 | "4" -------------------------------------------------------------------------------- /test/scpp/test46.in: -------------------------------------------------------------------------------- 1 | #define str(s) #s " test" 2 | str(hello world 42) 3 | -------------------------------------------------------------------------------- /test/scpp/test46.ref: -------------------------------------------------------------------------------- 1 | "hello world 42" " test" -------------------------------------------------------------------------------- /test/scpp/test47.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test47.in -------------------------------------------------------------------------------- /test/scpp/test47.ref: -------------------------------------------------------------------------------- 1 | 42 2 | 1 -------------------------------------------------------------------------------- /test/scpp/test48.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test48.in -------------------------------------------------------------------------------- /test/scpp/test48.ref: -------------------------------------------------------------------------------- 1 | 1 2 | 2 3 | 4 -------------------------------------------------------------------------------- /test/scpp/test49.in: -------------------------------------------------------------------------------- 1 | __FILE__ 2 | -------------------------------------------------------------------------------- /test/scpp/test49.ref: -------------------------------------------------------------------------------- 1 | "test49.in" -------------------------------------------------------------------------------- /test/scpp/test50.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test50.in -------------------------------------------------------------------------------- /test/scpp/test50.ref: -------------------------------------------------------------------------------- 1 | foo_test_blah -------------------------------------------------------------------------------- /test/scpp/test51.in: -------------------------------------------------------------------------------- 1 | #define X(a) a ## _bar 2 | X(foo) -------------------------------------------------------------------------------- /test/scpp/test51.ref: -------------------------------------------------------------------------------- 1 | foo_bar -------------------------------------------------------------------------------- /test/scpp/test52.in: -------------------------------------------------------------------------------- 1 | #define X(a) a ## 1 2 | X(foo) -------------------------------------------------------------------------------- /test/scpp/test52.ref: -------------------------------------------------------------------------------- 1 | foo1 -------------------------------------------------------------------------------- /test/scpp/test53.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test53.in -------------------------------------------------------------------------------- /test/scpp/test53.ref: -------------------------------------------------------------------------------- 1 | xx1 -------------------------------------------------------------------------------- /test/scpp/test54.in: -------------------------------------------------------------------------------- 1 | #define P(a,b) a##b 2 | P(1 , 2) -------------------------------------------------------------------------------- /test/scpp/test54.ref: -------------------------------------------------------------------------------- 1 | 12 -------------------------------------------------------------------------------- /test/scpp/test55.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test55.in -------------------------------------------------------------------------------- /test/scpp/test55.ref: -------------------------------------------------------------------------------- 1 | char p[] = "x ## y"; -------------------------------------------------------------------------------- /test/scpp/test56.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test56.in -------------------------------------------------------------------------------- /test/scpp/test56.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test56.ref -------------------------------------------------------------------------------- /test/scpp/test57.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test57.in -------------------------------------------------------------------------------- /test/scpp/test57.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test57.ref -------------------------------------------------------------------------------- /test/scpp/test58.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test58.in -------------------------------------------------------------------------------- /test/scpp/test58.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test58.ref -------------------------------------------------------------------------------- /test/scpp/test59.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test59.in -------------------------------------------------------------------------------- /test/scpp/test59.ref: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/scpp/test60.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test60.in -------------------------------------------------------------------------------- /test/scpp/test60.ref: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /test/scpp/test61.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test61.in -------------------------------------------------------------------------------- /test/scpp/test61.ref: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test61.ref -------------------------------------------------------------------------------- /test/scpp/test62.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/scpp/test62.in -------------------------------------------------------------------------------- /test/scpp/test62.ref: -------------------------------------------------------------------------------- 1 | 2 | YYY 3 | 123 -------------------------------------------------------------------------------- /test/scpp/test63.in: -------------------------------------------------------------------------------- 1 | #if 0 2 | #invalid 3 | #endif 4 | abc 5 | -------------------------------------------------------------------------------- /test/scpp/test63.ref: -------------------------------------------------------------------------------- 1 | abc -------------------------------------------------------------------------------- /test/sim86/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/sim86/CMakeLists.txt -------------------------------------------------------------------------------- /test/sim86/test.asm: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mras0/scc/HEAD/test/sim86/test.asm --------------------------------------------------------------------------------