github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/targets/nintendoswitch.json (about)

     1  {
     2    "llvm-target": "aarch64",
     3    "cpu": "cortex-a57",
     4    "features": "+aes,+crc,+fp-armv8,+neon,+sha2,+v8a,-fmv",
     5    "build-tags": ["nintendoswitch", "arm64"],
     6    "scheduler": "tasks",
     7    "goos": "linux",
     8    "goarch": "arm64",
     9    "linker": "ld.lld",
    10    "rtlib": "compiler-rt",
    11    "libc": "picolibc",
    12    "gc": "conservative",
    13    "relocation-model": "pic",
    14    "default-stack-size": 2048,
    15    "cflags": [
    16      "-target", "aarch64-unknown-none",
    17      "-fPIE",
    18      "-Werror",
    19      "-fshort-enums",
    20      "-fomit-frame-pointer",
    21      "-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
    22      "-ffunction-sections", "-fdata-sections"
    23    ],
    24    "ldflags": [
    25      "-pie",
    26      "-z", "notext"
    27    ],
    28    "linkerscript": "targets/nintendoswitch.ld",
    29    "extra-files": [
    30      "targets/nintendoswitch.s",
    31      "src/internal/task/task_stack_arm64.S",
    32      "src/runtime/asm_arm64.S",
    33      "src/runtime/runtime_nintendoswitch.S"
    34    ]
    35  }