That is, I need not specify the detailed bank, need I? I am using PIC18F258 in C18, there are 6 banks. How can the "near" and "far" map to "#pragma varlocate"? Thanks. Luke -----Original Message----- From: Jennifer L. Gatza [mailto:jenl@AUTO-SERV.COM] Sent: Monday, August 05, 2002 2:23 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]:How to select memory bank in C18 compiler You can also define a variable as either near or far, where near = access bank far = banked register It is good practice to use the near modifier for variables that you frequently use, and the far modifier for varibles that you seldom use. Jen > I am using MPLAB C18 compiler to develop PIC18F, could you > give me some > suggestions how I can select different memory bank using C18? > How can I use > "#pragma varlocate"? Do you have some experience in memory > using the C18? -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads