Optimize C-to-ASM interface