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
