|
|
|
|
|
|
|
In the large cg:gpl phase of the compiler primitive most of the code is transformed into intermediate code macros.
|
|
|
|
|
|
|
|
Later these intermediate code macros are expanded into other macros with named tuples.
|
|
|
|
Finally these macros which take a named tuple as an argument are expanded into the final code.
|
|
|
|
Only in this last extension into c code the code seems to differ based on the backend.
|
|
|
|
|
|
|
|
There are two types of intermediate code macros:
|
|
|
|
|
|
|
|
- Header intermediate code macros. These are just normal c macros that expand into code.
|
|
|
|
- ... macros, these take the tuples as arguments and expand into code.
|
|
|
|
|
|
|
|
The [named tuples](./Named-Tuples.md) are basically literal linked lists. |
|
|
|
\ No newline at end of file |