tinygo/targets/nintendoswitch.json
Ayke van Laethem 78fec3719f all: add target-features string to all targets
This makes sure that the LLVM target features match the one generated by
Clang:

  - This fixes a bug introduced when setting the target CPU for all
    targets: Cortex-M4 would now start using floating point operations
    while they were disabled in C.
  - This will make it possible in the future to inline C functions in Go
    and vice versa. This will need some more work though.

There is a code size impact. Cortex-M4 targets are increased slightly in
binary size while Cortex-M0 targets tend to be reduced a little bit.
Other than that, there is little impact.
2021-11-07 09:26:46 +01:00

35 строки
869 Б
JSON

{
"llvm-target": "aarch64",
"cpu": "cortex-a57",
"features": "+aes,+crc,+crypto,+fp-armv8,+neon,+sha2",
"build-tags": ["nintendoswitch", "arm64"],
"scheduler": "tasks",
"goos": "linux",
"goarch": "arm64",
"linker": "ld.lld",
"rtlib": "compiler-rt",
"libc": "picolibc",
"gc": "conservative",
"relocation-model": "pic",
"default-stack-size": 2048,
"cflags": [
"-target", "aarch64-unknown-none",
"-fPIE",
"-Werror",
"-fshort-enums",
"-fomit-frame-pointer",
"-fno-exceptions", "-fno-unwind-tables",
"-ffunction-sections", "-fdata-sections"
],
"ldflags": [
"-pie",
"-z", "notext"
],
"linkerscript": "targets/nintendoswitch.ld",
"extra-files": [
"targets/nintendoswitch.s",
"src/internal/task/task_stack_arm64.S",
"src/runtime/gc_arm64.S",
"src/runtime/runtime_nintendoswitch.s"
]
}