C/C++ OPT generation