File tree Expand file tree Collapse file tree 4 files changed +1178
-9
lines changed Expand file tree Collapse file tree 4 files changed +1178
-9
lines changed Original file line number Diff line number Diff line change 11include "cores/select.cal"
22include "std/io.cal"
33
4- # will execute on RM86 backend
4+ # Print a different message for each core
5+
56version RM86
67 "Hello, RM86!\n" printstr
78end
89
9- # will execute on Linux86 backend
10- version Linux86
11- "Hello, Linux86!\n" printstr
10+ version x86_64
11+ "Hello, x86_64!\n" printstr
12+ end
13+
14+ version arm64
15+ "Hello, arm64!\n" printstr
16+ end
17+
18+ version UXN
19+ "Hello, Uxn!\n" printstr
1220end
1321
14- # won't execute unless you set the Foo version
22+ # Specify arbitrary versions to use them as compile-time flags
1523version Foo
16- "Hello, Foo! \n" printstr
24+ "Foo is enabled :D \n" printstr
1725end
1826
19- # will execute because Foo isn't set
27+ # This one will run by default unless you set Foo
2028version not Foo
21- "Hello, not Foo! \n" printstr
29+ "Foo is not enabled :( \n" printstr
2230end
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import callisto.preprocessor;
1313import callisto.backends.lua;
1414import callisto.backends.uxn;
1515import callisto.backends.rm86;
16+ import callisto.backends.arm64;
1617import callisto.backends.x86_64;
1718
1819const static string usage = "
4546Backends and their operating systems:
4647 rm86 - Real mode x86, for bare-metal, dos
4748 x86_64 - 64-bit x86, for bare-metal, linux
49+ arm64 - 64-bit ARM, for linux
4850 uxn - Varvara/Uxn
4951 lua - Lua, uses subset CallistoScript
5052
@@ -162,6 +164,10 @@ int main(string[] args) {
162164 backend = new BackendX86_64();
163165 break ;
164166 }
167+ case " arm64" : {
168+ backend = new BackendARM64();
169+ break ;
170+ }
165171 case " uxn" : {
166172 backend = new BackendUXN();
167173 break ;
You can’t perform that action at this time.
0 commit comments