diff options
Diffstat (limited to 'rust/asm')
| -rw-r--r-- | rust/asm/Cargo.lock | 32 | ||||
| -rw-r--r-- | rust/asm/Cargo.toml | 9 | ||||
| -rwxr-xr-x | rust/asm/build.sh | 5 | ||||
| -rw-r--r-- | rust/asm/main.rs (renamed from rust/asm/src/main.rs) | 0 | ||||
| -rw-r--r-- | rust/asm/main_aarch64.S (renamed from rust/asm/src/main_aarch64.S) | 2 |
5 files changed, 6 insertions, 42 deletions
diff --git a/rust/asm/Cargo.lock b/rust/asm/Cargo.lock deleted file mode 100644 index 92ce097..0000000 --- a/rust/asm/Cargo.lock +++ /dev/null @@ -1,32 +0,0 @@ -# This file is automatically @generated by Cargo. -# It is not intended for manual editing. -version = 4 - -[[package]] -name = "cc" -version = "1.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f360145194ee8e21db5ee7f3fcd4fe52210864c75c985dae33218202c8bbe040" -dependencies = [ - "find-msvc-tools", - "shlex", -] - -[[package]] -name = "find-msvc-tools" -version = "0.1.14" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aedcfb3409746eddb02b9e19ebda1c3394f759a152e48ee875a0844d1b955484" - -[[package]] -name = "rust-asm" -version = "0.1.0" -dependencies = [ - "cc", -] - -[[package]] -name = "shlex" -version = "2.0.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba" diff --git a/rust/asm/Cargo.toml b/rust/asm/Cargo.toml deleted file mode 100644 index 87c91e7..0000000 --- a/rust/asm/Cargo.toml +++ /dev/null @@ -1,9 +0,0 @@ -[package] -name = "rust-asm" -version = "0.1.0" -edition = "2024" - -[dependencies] - -[build-dependencies] -cc = "*" diff --git a/rust/asm/build.sh b/rust/asm/build.sh new file mode 100755 index 0000000..0d51849 --- /dev/null +++ b/rust/asm/build.sh @@ -0,0 +1,5 @@ +#!/bin/sh +mkdir -p bin +cc -c main_aarch64.S -o bin/asm.o +ar rcs bin/libasm.a bin/asm.o +rustc --edition 2024 main.rs -L bin -l static=asm --out-dir bin diff --git a/rust/asm/src/main.rs b/rust/asm/main.rs index 7265deb..7265deb 100644 --- a/rust/asm/src/main.rs +++ b/rust/asm/main.rs diff --git a/rust/asm/src/main_aarch64.S b/rust/asm/main_aarch64.S index 56403d5..191df8c 100644 --- a/rust/asm/src/main_aarch64.S +++ b/rust/asm/main_aarch64.S @@ -11,7 +11,7 @@ // WITH REGARD TO THIS SOFTWARE. // ================================================================================================ -#include "../../../_common/aarch64/common.S" +#include "../../_common/aarch64/common.S" TEXT_SEGMENT |