mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-05 03:27:48 +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",
|
||||
PortReset: "false",
|
||||
FlashMethod: "native",
|
||||
CodeModel: "default",
|
||||
}
|
||||
if goos == "darwin" {
|
||||
spec.LDFlags = append(spec.LDFlags, "-Wl,-dead_strip")
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
|
||||
MEMORY
|
||||
{
|
||||
RAM (xrw) : ORIGIN = 0xffffffff80000000, LENGTH = 6M
|
||||
RAM (xrw) : ORIGIN = 0x80000000, LENGTH = (6 * 1024 * 1024)
|
||||
}
|
||||
|
||||
REGION_ALIAS("FLASH_TEXT", RAM);
|
||||
|
||||
Reference in New Issue
Block a user