Similar things happen with 18F's.
PBP does a pretty good job of optimizing code size.
If the subroutine or library routine is within -1024/+1023 then it will use an RCALL (relative Call) instead of CALL. RCALL uses 1 word and CALL uses 2 words.
If the subroutines do most of the work, then they probably call library routines frequently.
By placing them close to the library (top of program), a large number of CALL's will change to RCALL's, reducing the code size.
<br>




Bookmarks