Cache Construction
To better master our understanding of how cache's work, we were tasked with implementing a cache to work alongside read and write calls established in our dynamic memory allocation code (also can be found under "projects"). Utilizing structures and our own Malloc/Calloc functions, we would create cache functions to create, destroy, lookup, insert, update, and verify cache entries dynamically.Â
We were also influenced to create these functions efficiently, as the engineer with the best hit rate for the cache, would be awarded with the best grade. This not only tested our ability to write functioning code, but to make it as cost-efficient as possible.