Working on compiling c code with stack allocations