Skip to content

Commit 1c5e4cf

Browse files
committed
beta 0.12.6
1 parent f832c5f commit 1c5e4cf

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

source/app.d

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import callisto.backends.rm86;
1818
import callisto.backends.arm64;
1919
import callisto.backends.x86_64;
2020

21-
const static string appVersion = "Beta 0.12.5";
21+
const static string appVersion = "Beta 0.12.6";
2222

2323
const static string usage = "
2424
Callisto Compiler
@@ -61,7 +61,7 @@ Backend options:
6161
rm86:
6262
no-dos - Disables DOS-specific features
6363
x86_64:
64-
use-libc - Makes Callisto use the C runtime and links libc
64+
use-libc - Makes Callisto use the C runtime and links libc
6565
frame-ptr - Makes Callisto use both rbp (frame pointer) and rsp for stack frames
6666
";
6767

source/backends/x86_64.d

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -746,7 +746,7 @@ class BackendX86_64 : CompilerBackend {
746746
output ~= "mov [r15], r14\n";
747747
}
748748
else {
749-
output ~= format("mov qword [r15], qword %d\n", node.value);
749+
output ~= format("mov $(QWORD) [r15], %d\n", node.value);
750750
}
751751
output ~= "add r15, 8\n";
752752
}
@@ -806,7 +806,7 @@ class BackendX86_64 : CompilerBackend {
806806

807807
if (node.errors) {
808808
output ~= format("lea rax, __global_%s\n", Sanitise("_cal_exception"));
809-
output ~= "mov qword [rax], qword 0\n";
809+
output ~= "mov $(QWORD) [rax], 0\n";
810810
}
811811

812812
// allocate parameters
@@ -1095,7 +1095,7 @@ class BackendX86_64 : CompilerBackend {
10951095

10961096
if (!inScope || node.constant) {
10971097
output ~= format("lea rax, __array_%d_meta\n", arrays.length - 1);
1098-
output ~= "mov qword [r15], rax\n";
1098+
output ~= "mov $(QWORD) [r15], rax\n";
10991099
output ~= "add r15, 8\n";
11001100
}
11011101
else {
@@ -1132,8 +1132,8 @@ class BackendX86_64 : CompilerBackend {
11321132

11331133
output ~= "mov rax, rsp\n";
11341134
output ~= format("sub rsp, %d\n", 8 * 3); // size of Array structure
1135-
output ~= format("mov qword [rsp], qword %d\n", array.values.length); // length
1136-
output ~= format("mov qword [rsp + 8], qword %d\n", array.type.size); // member size
1135+
output ~= format("mov $(QWORD) [rsp], %d\n", array.values.length); // length
1136+
output ~= format("mov $(QWORD) [rsp + 8], %d\n", array.type.size); // member size
11371137
output ~= "mov [rsp + 16], rax\n"; // elements
11381138

11391139
// push metadata address

0 commit comments

Comments
 (0)