Improving high performance computing using code generation and compilation techniques