I only had a quick look, and didn't test this yet. So just one quick recommendation for now: instead of emitGptrTransfer64, which is hardcoded to 64 bits, implement a function that works for any width (that is a multiple of 8). That will make it easier to later implement support for _BitInt, which you'll want, since it is an important C23 feature especially useful for memory-constrained devices, and the generalized constant propagation optimization, which is also very helpful to reduce memory usage, also depends on _BitInt support.