Using dynamic stack registers