SA>#pragma rambank locates VARIABLES ONLY in the required rambank. To assign functions to a given SA>page use #pragma codepage (see SA>page 43 of manual). AG>> Missing 4 byte(s) for local variables, rambank 1 AG>> (It is recommended to let all local variables reside in one block AG>> if possible. Note that #pragma rambank will locate local and AG>> global variables) Steve Thanks for the reply. Looking back at my original post and your response, do you not agree that it is actually variable space that I'm running short on? Most of my functions use several local variables - so how can I ensure that the function and it's local variables end up on the same codepage. Is this necessary? Thanks Alan -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.