In some projects when you try to compile the code, there can be an error "Not enough ROM space" when you add a single additional line of code, even if before you added it you saw you have more than enough free memory.
This error might occur if you have some large functions in your code.
Please refer to the PIC16F specifics, you can find them in our Help file as well. It is suggested to organize code into more smaller functions, since PIC16 can't support more than 2000 instructions per page.
Here is the link that explains it further:
http://download.mikroe.com/documents/compilers/mikroc/pic/help/pic_specifics.htm