Hi, I am not using any one of the other register banks for any ISR. So the other banks should not be reserved for anything. It must be used for data storage. I am using SDCC verison 2.9 and following are the compilation flags. --debug -small-model --stack-auto
Memory map shows that: 00H-07H used as register bank0 08H - _bp 09H -1FH are unused. 20H - indicates as T but no data is stored even though I don't have any bit variables. 21H onwards data stored and then stack follows. Thanks Saleem On Tue, Jul 27, 2010 at 1:42 AM, Maarten Brock <[email protected]> wrote: > Hi, > > SDCC does not reserve the register banks for interrupts. > And it should use unused banks for data storage > automatically. Are you perhaps using an ancient version > of SDCC? Or some special command line options? > > Maarten > >> Saleemuddin Mohd schreef: >> > Hi All, >> > >> > I am compiling my application code with small-model and stack-auto >> > flags. The generated .mem file shows that register bank 0 is being >> > used for the whole application. The other register banks 1,2,3 are not >> > being used at all. Data starts storing at 20H i.e after the end of the >> > register banks and then the stack follows. Since we are using only one >> > register bank can we make use of other reg bank for data storage i.e >> > let data starts at 08H. This will give more stack space for re-entrant >> > functions. >> > >> > >> I think the reason for these extra registers not being used as storage >> is that you can assign those register banks to specific interrupt >> functions which saves quite a lot of push and pop instructions and thus >> stack space. >> >> Gert > > > ------------------------------------------------------------------------------ > The Palm PDK Hot Apps Program offers developers who use the > Plug-In Development Kit to bring their C/C++ apps to Palm for a share > of $1 Million in cash or HP Products. Visit us here for more details: > http://ad.doubleclick.net/clk;226879339;13503038;l? > http://clk.atdmt.com/CRS/go/247765532/direct/01/ > _______________________________________________ > Sdcc-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/sdcc-user > ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://ad.doubleclick.net/clk;226879339;13503038;l? http://clk.atdmt.com/CRS/go/247765532/direct/01/ _______________________________________________ Sdcc-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/sdcc-user
