Compile code