Replace ARR_STACK with regular C array