github.com/aykevl/tinygo@v0.5.0/targets/arduino.json (about)

     1  {
     2  	"inherits": ["avr"],
     3  	"llvm-target": "avr-atmel-none",
     4  	"cpu": "atmega328p",
     5  	"build-tags": ["arduino", "atmega328p", "atmega", "avr5"],
     6  	"cflags": [
     7  		"-mmcu=atmega328p"
     8  	],
     9  	"ldflags": [
    10  		"-Wl,--defsym=_bootloader_size=512",
    11  		"-Wl,--defsym=_stack_size=512",
    12  		"-T", "src/device/avr/atmega328p.ld"
    13  	],
    14  	"extra-files": [
    15  		"targets/avr.S",
    16  		"src/device/avr/atmega328p.s"
    17  	],
    18  	"flash": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}"
    19  }