mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-18 11:33:59 +00:00
Add llvm code model option in target definition
This commit is contained in:
@@ -276,6 +276,7 @@ func defaultTarget(goos, goarch, triple string) (*TargetSpec, error) {
|
|||||||
GDB: "gdb",
|
GDB: "gdb",
|
||||||
PortReset: "false",
|
PortReset: "false",
|
||||||
FlashMethod: "native",
|
FlashMethod: "native",
|
||||||
|
CodeModel: "default",
|
||||||
}
|
}
|
||||||
if goos == "darwin" {
|
if goos == "darwin" {
|
||||||
spec.LDFlags = append(spec.LDFlags, "-Wl,-dead_strip")
|
spec.LDFlags = append(spec.LDFlags, "-Wl,-dead_strip")
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
{
|
{
|
||||||
RAM (xrw) : ORIGIN = 0xffffffff80000000, LENGTH = 6M
|
RAM (xrw) : ORIGIN = 0x80000000, LENGTH = (6 * 1024 * 1024)
|
||||||
}
|
}
|
||||||
|
|
||||||
REGION_ALIAS("FLASH_TEXT", RAM);
|
REGION_ALIAS("FLASH_TEXT", RAM);
|
||||||
|
|||||||
Reference in New Issue
Block a user