mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 15:33:40 +00:00
avr: make stack size configurable
This commit is contained in:
@@ -6,6 +6,7 @@
|
|||||||
"-nostartfiles",
|
"-nostartfiles",
|
||||||
"-mmcu=avr5",
|
"-mmcu=avr5",
|
||||||
"-Wl,--defsym=_bootloader_size=512",
|
"-Wl,--defsym=_bootloader_size=512",
|
||||||
|
"-Wl,--defsym=_stack_size=512",
|
||||||
"-T", "src/device/avr/atmega328p.ld",
|
"-T", "src/device/avr/atmega328p.ld",
|
||||||
"-T", "targets/avr.ld",
|
"-T", "targets/avr.ld",
|
||||||
"-Wl,--gc-sections",
|
"-Wl,--gc-sections",
|
||||||
|
|||||||
@@ -5,8 +5,6 @@ MEMORY
|
|||||||
RAM (xrw) : ORIGIN = 0, LENGTH = __ram_size
|
RAM (xrw) : ORIGIN = 0, LENGTH = __ram_size
|
||||||
}
|
}
|
||||||
|
|
||||||
_stack_size = 512;
|
|
||||||
|
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
.text :
|
.text :
|
||||||
|
|||||||
Reference in New Issue
Block a user