Compiling a code for a PIC chip uses less or more words then compiling the same code for another PIC.

For example, in terms of the words used, compiling a code for F877 is approx. 25% more then compiling the same code for F628A. I had 2500 words for F877 but 2043 words for F628A.

May I have some information why this happens?

Thanks