Compiler utils and test