> Maarten Hofman wrote: > > 1) Relocatable code, in its basic form, is apt to add additional code > > for bank switching > > Completely untrue. Bank switching is required when you go back and forth > between locations in different banks. This has nothing to do with absolute > versus relocatable mode. > > You generally do assume that anything outside the current module can be in > another code page. However, that is only because you have the option of > letting the linker place the modules. If you really want to, you can force > specific modules to specific pages, then not include PCLATH diddling when > you go between modules known to be on the same page. With "in its basic form" I meant: while letting the linker decide how to place modules. I agree that if you plan these things better, the result can almost always be the same as absolute code (which I also mentioned in my original Email). I actually like this "basic form" which allows me to worry less about these sort of details. Greetings, Maarten Hofman. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist