generate compiling code