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 The last point means I need to identify the syntax for this in NASM, the book uses gas syntax, and my normal cheat of looking what…
-
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 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…