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

     1  {
     2  	"build-tags": ["cortexm", "baremetal", "linux", "arm"],
     3  	"goos": "linux",
     4  	"goarch": "arm",
     5  	"gc": "conservative",
     6  	"scheduler": "tasks",
     7  	"linker": "ld.lld",
     8  	"rtlib": "compiler-rt",
     9  	"libc": "picolibc",
    10  	"automatic-stack-size": true,
    11  	"default-stack-size": 2048,
    12  	"cflags": [
    13  		"-Werror",
    14  		"-fshort-enums",
    15  		"-fomit-frame-pointer",
    16  		"-mfloat-abi=soft",
    17  		"-fno-exceptions", "-fno-unwind-tables", "-fno-asynchronous-unwind-tables",
    18  		"-ffunction-sections", "-fdata-sections"
    19  	],
    20  	"ldflags": [
    21  		"--emit-relocs",
    22  		"--gc-sections"
    23  	],
    24  	"extra-files": [
    25  		"src/device/arm/cortexm.S",
    26  		"src/internal/task/task_stack_cortexm.S",
    27  		"src/runtime/asm_arm.S"
    28  	],
    29  	"gdb": ["gdb-multiarch", "arm-none-eabi-gdb", "gdb"]
    30  }