@@ -54,6 +54,9 @@ anywhere, instead we use C struct indexing or `sizeof(StgHeader)`.
...
@@ -54,6 +54,9 @@ anywhere, instead we use C struct indexing or `sizeof(StgHeader)`.
This makes it easy to extend `StgHeader` with new fields if we
This makes it easy to extend `StgHeader` with new fields if we
need to.
need to.
The compiler also needs to know the layout of heap objects, and the way this information is plumbed into the compiler from the C headers in the runtime is described here: [Commentary/Compiler/CodeGen](commentary/compiler/code-gen#storage-manager-representations).