Pat compiling