main article memory allocation based stack and machine stack