I'm trying to compile a program with 3kb, but I'm getting this message:

error: no target memory available for section "ID_piccode_1"

The device is a pic 16f877a, which has 8kb of program memory.

Is there something that i could do to compile this code without rewritting a smaller code?

Thanks in advance,
Pedro Henrique.