Implement RTI and ITR using C library.