summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlejandro Sior <aho@sior.be>2022-07-31 15:42:56 +0200
committerAlejandro Sior <aho@sior.be>2022-07-31 15:42:56 +0200
commit65f13dba60cab28c5b6cae2d72b792ade51c86c8 (patch)
treed125fc78c1c875cdcaaae2c6e627b3ace3730704 /test
parentab4fa9d91adfc50ce3dff85b79c0ab09963f20f7 (diff)
cook: getting system compilers
Diffstat (limited to 'test')
-rw-r--r--test/.build5
-rw-r--r--test/test.S6
-rw-r--r--test/test.asm6
3 files changed, 8 insertions, 9 deletions
diff --git a/test/.build b/test/.build
index 8fdda48..74fa78d 100644
--- a/test/.build
+++ b/test/.build
@@ -1,5 +1,4 @@
linker_sc = CWD / "linker.sc"
-as_obj = asm("test.asm")
-obj = cc("main.c", extra_args="-T" + str(linker_sc))
-aout = ld("a.out", obj, as_obj) \ No newline at end of file
+obj = cc("main.c", "test.S")
+aout = ld("a.out", obj) \ No newline at end of file
diff --git a/test/test.S b/test/test.S
new file mode 100644
index 0000000..875ab58
--- /dev/null
+++ b/test/test.S
@@ -0,0 +1,6 @@
+.code64
+
+.global test
+test:
+ mov $69, %rax
+ ret \ No newline at end of file
diff --git a/test/test.asm b/test/test.asm
deleted file mode 100644
index bcd7d20..0000000
--- a/test/test.asm
+++ /dev/null
@@ -1,6 +0,0 @@
-[bits 64]
-
-global test
-test:
- mov eax, 69
- ret \ No newline at end of file