Yes. when you declare a variable prefix it with bank1 e.g. bank1 char varname However the choice of which vars to put in other banks can have huge implications on code size due to page switching.=20 Arrays usually incur little or no penalty as they are accessed via indf Start by moving the least-frequently used vars to bank1, and move chars first, as ints and longs will usually incur lots of page switching. There are some types of vars that can only be in bank 0 - bits and locals I think.=20 On processors with more than 2 banks you can use bank2, bank3 etc. but this will use even more code space.=20 On Thu, 11 Apr 2002 10:11:57 -0400, you wrote: >I thought I sent this, but I was having account errors. > >Are there any resources on how to better manage memory in Hi-Tech PICC? > >I am getting this report that apparently shows I am only using bank 0. = Note >that it says nothing of x51 to x70. > >Bank 0 RAM $0020 - $006F $0050 ( 80) bytes >Bank 0 RAM $0071 - $007F $000F ( 15) bytes > $005F ( 95) bytes total Bank 0 RAM > >If I add one more byte of global memory, I get this result: > >::Can't find 0x1 words (0x1 withtotal) for psect intsave_0 in segment >COMBANK (error) > >Is there any way I can use the other banks? The manual doesn't seem to = say, >and it wildly confuses me with the psect chapter. I think I might have = seen >a solution back when, but I can't find it any more. I have converted a = lot >of global variables to local to improve my code and work around a global >psect limit, but I am stuck, as adding a byte of local or global memory >anywhere in the code gets this error. > >Thanks for any help. > >Jeff -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu