toalan,

Alain has already mentioned it, the problem is not with the compiler, the 16F877 simply is the wrong choice for your kind of application.