Allocate program struct on main stack