Tag: Rust Programming Language
-
Working Through WACC – chapter 15, arrays and pointer arithmetic
WACC is this excellent book and I am blogging my way though it This was by far the hardest chapter so far. This was a surprise to me since I thought I understood arrays and pointer arithmetic, and I always start each chapter out with “do I know the part of C that we are…
-
Working Through WACC – Pause after part 1
I am blogging my way through this book:- I have reached the end of Part I and this blog post is a summary of thoughts about the progress. Summary This is a great book. Although I have diverged from some of the design details (more later) I have mainly stuck to its plan. The test…
-
Working through ‘WACC’ – Chapter 9 – Functions
WACC means this book And this is my journey through it. Parsing This is a complicated chapter, and I haven’t even got to the code generation part yet Anyway that is now working. On to Code Generation This is where I expected the first major problem of Windows vs Linux / Mac to be. Linux…
-
Working Through WACC – Chapter 7, Compound statements
Because we haven’t had it for a while here’s the front cover. If you are not sure what this post is about check out episode 1 https://jollygoodsw.wordpress.com/2025/03/13/working-through-writing-a-c-compiler/ This is a short chapter, the only real change is that the variable name / scope resolution gets fancier. This is beacuse we can now have Ie we…
-
Interfacing C With Rust To Build a Debugger
Photo by Markus Spiske on Unsplash Introduction I decided to write a debugger for the sim65 6502 emulator that’s part of the cc65 tool suite (cc65 — a freeware C compiler for 6502 based systems). The cc65 toolset is written in c, but I was not going to even attempt to code a debugger in pure c (I…