[SPCA] fix formatting errors, add notes

This commit is contained in:
2026-01-28 08:06:45 +01:00
parent c42f8c65c6
commit 5eda12a69b
4 changed files with 4 additions and 1 deletions

View File

@@ -17,3 +17,4 @@ They are stored and operated on in floating point registers.
\end{tables}
Assembly does not support any aggregate types (such as arrays, structs, etc) natively. You can however (obviously) make your own.
In the following section we will cover how \lC\ datatypes are compiled into assembly.
Do note that the \texttt{sizeof} function in \lC\ returns the number of bytes.

View File

@@ -20,5 +20,7 @@ For alignment on \texttt{x86-64} we have:
\end{multicols}
\dhrmvspace
On 64 bit Linux, using \texttt{gcc}, structs are compiled according to this concept and the size is \texttt{n * k} bytes.
Another issue is accessing members. The solution to this is however easy and efficient, as at compile time, the offsets are pre-determined
and compiled into the setter and/or getter code for the struct.