My program has a line of code:
float cache[featureHeight-1];
where featureHeight is a function parameter. Now that the C compiler translates this to an assembly, how does it know how much space is allocated for the stack since featureHeight is not defined at compile time? Or does the compiler convert this to a malloc call backstage?
(C99 btw, no compiler errors or warnings, and the code works fine)
source
share