If the compiler fails because of lack of memory, print an appropriate error message.