mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-07 04:23:41 +00:00
avr: properly support the .rodata section
Unfortunately, the .rodata section can't be stored in flash. Instead, an explicit .progmem section should be used, which is supported in LLVM as address space 1 but not exposed to normal programs. Eventually a pass should be written that converts trivial const globals of which all loads are visible to be in addrspace 1, to get the benefits of storing those globals directly in ROM.
This commit is contained in:
committed by
Ron Evans
parent
3364da6f25
commit
171f793c1e
-5
@@ -1,5 +0,0 @@
|
||||
target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
|
||||
target triple = "armv7em-none-eabi"
|
||||
|
||||
@globalIntConst = constant i32 3
|
||||
@globalIntVar = global i32 5
|
||||
-5
@@ -1,5 +0,0 @@
|
||||
target datalayout = "e-m:e-p:32:32-Fi8-i64:64-v128:64:128-a:0:32-n32-S64"
|
||||
target triple = "armv7em-none-eabi"
|
||||
|
||||
@globalIntConst = global i32 3
|
||||
@globalIntVar = global i32 5
|
||||
Reference in New Issue
Block a user