Offloading computation to C from cmm