Resource-aware Automotive Control Systems Design