SDL to EC conversion