got gp_screen_init working on the assembler side!

Will not be doing most of the course in assembly for now.
Assemblers are missing a bunch of ergonomics not related to to instruction abstraction. Mostly related to offset and data typw width calulations and how to ergonomically utilize those symbols within the assembly syntax. The GNU gas macros are terrible and struct member resolution must be done manually.
There is no utilities for doing stack allocations with alignment in mind either, no way to get info on the system's calling convention for foreign symbols (not even as a diagnostic, etc).

C is a terrible for inline assembly, and gas doesn't support grabbing C struct info from header files (even though they are part of the same toolchain collection).
There is no utilities for doing stack allocations with alignment in mind either, no way to get info on the system's calling convention for foreign symbols (not even as a diagnostic, etc).

Low-level dev really is in a catch 22 of bad tooling.
This commit is contained in:
2025-09-13 21:49:10 -04:00
parent ebc6895c61
commit e04bcb91b4
9 changed files with 269 additions and 116 deletions
+7 -1
View File
@@ -24,6 +24,12 @@
"string_view": "c",
"functional": "c",
"tuple": "c",
"hello_gpu.h": "c"
"hello_gpu.h": "c",
"compare": "c",
"ratio": "c",
"scoped_allocator": "c",
"variant": "c",
"math.h": "c",
"cstdint": "c"
}
}