Skip to content

Instantly share code, notes, and snippets.

@lupyuen
Last active April 18, 2024 15:31
Show Gist options
  • Save lupyuen/9f269598bda11215832bd91a592d00a2 to your computer and use it in GitHub Desktop.
Save lupyuen/9f269598bda11215832bd91a592d00a2 to your computer and use it in GitHub Desktop.
Dump the Built-In Rust Target: riscv64gc (64-bit RISC-V with Double-Float). See https://github.com/lupyuen/nuttx-rust-app
## Dump the Built-In Rust Target:
## riscv64gc (64-bit RISC-V with Double-Float)
$ rustc \
+nightly \
-Z unstable-options \
--print target-spec-json \
--target riscv64gc-unknown-none-elf
{
"arch": "riscv64",
"code-model": "medium",
"cpu": "generic-rv64",
"data-layout": "e-m:e-p:64:64-i64:64-i128:128-n32:64-S128",
"eh-frame-header": false,
"emit-debug-gdb-scripts": false,
"features": "+m,+a,+f,+d,+c",
"is-builtin": true,
"linker": "rust-lld",
"linker-flavor": "ld.lld",
"llvm-abiname": "lp64d",
"llvm-target": "riscv64",
"max-atomic-width": 64,
"panic-strategy": "abort",
"relocation-model": "static",
"supported-sanitizers": [ "kernel-address" ],
"target-pointer-width": "64"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment