Built-in compilation and memory allocation