Call C from ATS main