ВходНаше всё Теги codebook 无线电组件 Поиск Опросы Закон Воскресенье
19 мая
121757 Топик полностью
Gamma SPb (02.06.2008 11:48, просмотров: 210) ответил MBedder на Значения _SP_init и _SPLIM_init вычисляются линкером после линковки всех data-секций так, что под стек отдается вся оставшаяся RAM. Если хочешь делать это сам полуавтоматом, то пользуйся директивой .sizeof.section., или руками пиши прямо значения
или так: 16-Bit Assembler, Linker and Utilities User's Guide 8.5.8 --stack size Set minimum stack to size bytes (default=16). By default, the linker allocates all unused data memory for the run-time stack. Alternatively, the programmer may allocate the stack by declaring two global symbols: __SP_init and __SPLIM_init. Use this option to ensure that at least a minimum sized stack is available. The actual stack size is reported in the link map output file. If the minimum size is not available, an error is reported