Blogs / Personal blogs

Tom’s Blog

tomscheers.github.io

A blog site covering topics like low level programming, privacy, computers and more.

Popular posts
1
Total points
197
HN comments
117
Rank
#12,884 personal

Visit tomscheers.github.io → RSS feedOn Hacker News Jul 2025 – Jul 2025

Systems & Performance 1Software Engineering 1

1

Writing memory efficient C structs

A struct in C is the best way to organize your data so that you can easily use the data later in your program. However, there are a few caveats to C structures, mainly how their memory works. Note that I’m making a lot of assumptions about type sizes and standards. These can differ between systems and ABI’s, so for…