Tag: C
-
Working Through WACC – Chapter 10
WACC is this book and I am blogging my way through it. This is the last chapter in part 1. A quick skim shows its not too hard. Adding extern and static keywords non stack data The last point means I need to identify the syntax for this in NASM, the book uses gas syntax,…
-
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 Significant rewrite of the declaration and definition parsing. Added a new symbol table, I thought this would replace the variable renaming tables but it is an adjunct…
-
Working through ‘WACC’ – chapter 4 Logical and relational operators
Because I like the cover here it is again The big step here is that we add jumps, conditional and unconditional, because && and || can cause us to skip executing some code . Ignoring Nora is a bad idea This is where we start generating labels for jumps. The book says generate meaningful label…
-
Common StackOverflow Errors #1 returning pointer to stack data
I like to help beginner programmers on StackOverflow. I thought I would do a series of articles on common errors, mainly in C but with some c++ and maybe a few other languages. Why? Its interesting to see the things that people get stuck on Maybe potential posters to SO will look here and find…