mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-09 21:43:40 +00:00
runtime: use the tasks scheduler instead of coroutines
This results in smaller and likely more efficient code. It does require some architecture specific code for each architecture, but I've kept the amount of code as small as possible.
This commit is contained in:
committed by
Ron Evans
parent
3b24fedf92
commit
9f5066aa6f
@@ -1,6 +1,7 @@
|
||||
{
|
||||
"llvm-target": "aarch64",
|
||||
"build-tags": ["nintendoswitch", "arm64"],
|
||||
"scheduler": "tasks",
|
||||
"goos": "linux",
|
||||
"goarch": "arm64",
|
||||
"linker": "ld.lld",
|
||||
@@ -9,6 +10,7 @@
|
||||
"gc": "conservative",
|
||||
"relocation-model": "pic",
|
||||
"cpu": "cortex-a57",
|
||||
"default-stack-size": 2048,
|
||||
"cflags": [
|
||||
"-target", "aarch64-unknown-none",
|
||||
"-mcpu=cortex-a57",
|
||||
@@ -26,6 +28,7 @@
|
||||
"linkerscript": "targets/nintendoswitch.ld",
|
||||
"extra-files": [
|
||||
"targets/nintendoswitch.s",
|
||||
"src/internal/task/task_stack_arm64.S",
|
||||
"src/runtime/gc_arm64.S",
|
||||
"src/runtime/runtime_nintendoswitch.s"
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user