Implement compilation of frame.