Compiling whole stack