mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-08 13:03:39 +00:00
0d8a7e1666
This allows the use of some compiler-generated builtins that are hopefully compatible with LLVM. Example: println(uint8(foo)) Code size is unchanged normally but of course compiler builtins will increase code size when actually used (for example with division).
9 lines
328 B
JSON
9 lines
328 B
JSON
{
|
|
"llvm-target": "avr-atmel-none",
|
|
"build-tags": ["avr", "avr8", "atmega", "atmega328p", "js", "wasm"],
|
|
"linker": "avr-gcc",
|
|
"pre-link-args": ["-nostartfiles", "-T", "targets/avr.ld", "-Wl,--gc-sections", "targets/avr.S"],
|
|
"objcopy": "avr-objcopy",
|
|
"flash": "avrdude -c arduino -p atmega328p -P {port} -U flash:w:{hex}"
|
|
}
|