0x0000 · HELLO
How the machine works, written down in C.
Notes on memory, data layout and the CPU, from someone writing their own C library, a virtual tabletop and a yuri catalogue. Examples assume x86-64.
LATEST
2Counting Classified Pairs
This (and probably the next too) will be a shorter post, as most of the work was already done in the first post.
1Basic Understanding of Branchless Vectorised Parsing
To understand this better, I will be starting with a simpler form, that does not involve vectorisation.
4.1Alignment, Data, and Memory
Like some of the previous topics, alignment has to do with how the CPU works and is less about C, but the examples are, of course, still in C.
3.6Pointer Arithmetic
When doing pointer arithmetic with a type, the increment in bytes is always the size of that type.
3.5Arrays
There are only two way of having a collection or array of elements in C.