I'm not sure where to post this, but I'm curious as to how Quake handles calling of functions.
I see that in PR_COMP.C (from qcc.exe code) that QCC just generates a huge list of 'globals' and everything operates on that, but then in pr_exec.c (Quake engine source) it shows that there is a localstack which 'backs up' variables that the current function is working with, before entering the next function.. but I don't see why that's necessary when globals+locals are basically allocated by QCC in one huge continuous block of memory.. when would any vars from one function 'step on' the vars from another?
am I missing something? were they missing something?