From: Bernhard H. <ber...@be...> - 2002-04-12 11:32:06
|
> In the following rst output:- > > 004C 253 _inc_dec_PARM_3:: > 004C 254 .ds 1 -------------------->last used loc. cntr is 4C > 255 .area _DUMMY > 256 .area OSEG (OVR,DATA) > 257 .area _DUMMY > 258 .area OSEG (OVR,DATA) > 259 ;-------------------------------------------------------- > 260 ; Stack segment in internal ram > 261 ;-------------------------------------------------------- > 262 .area SSEG (DATA) > 0056 263 __start__stack:--------->why has it jumped to 56 instead of 4D? > 0056 264 .ds 1 > > In the above code, the location counter has changed to 56 instead of 4D. > Why? > My command line is --stack-after-data. Second thought, second try: I guess you've linked several files together. The linker puts the DSEG areas together. This apparently consumes the space up to 0055. After the DSEG area the linker appends the SSEG area. This is what you requested with --stack after data. The space between 004D and 0055 is occupied by another module. Please check the other rst-files and your map-file. Bernhard |