Cisco IOS, NXOS, IOS-XE and IOS-XR are C/C++.
The programmed routes go into hardware on the bigger systems, and either way there is no Linux kernel routing involved at all.
Edit: If I'm not mistaken I think Linux is actually used in some platforms for routing the out of band management interface, but not transit traffic.