Kernel Compiling Optimizations