PlasmaLang / plasma

Plasma Programming Language
Other
162 stars 10 forks source link

Builtins have a step of indirection that can be removed. #402

Open PaulBone opened 2 years ago

PaulBone commented 2 years ago

Builtins implemented in C are wrapped with a small PZ procedure that contains the CCALL instruction. We can optimise this away for static call sites. We'll need to keep it for dynamic calls (where the caller can't know that it's calling C code rather than PZ code).