Compile with buffer as input