LeiR 发表于 2016-2-24 11:24:03

本想进来发个言,进来后发现被震撼了

Yvan 发表于 2016-3-4 00:11:04

今天特意看了ARM的启动代码,初步看了看别人的详解,也有一些不明白的地方。这个帖子讨论的内容也是我不明白之一。先收藏,以后再慢慢看!

jamesdeep 发表于 2016-3-5 18:50:16

精彩的很啊

syler 发表于 2016-3-6 12:31:55

看懂了一点点,但还是需要很多细节的知识。

Suna 发表于 2016-3-6 13:22:22

好贴,学研读中。。。

yick 发表于 2016-3-6 13:24:18

学到很多

jamesdeep 发表于 2016-3-20 16:54:02

经过几天的研究,我来给出权威的解答吧,答案就在keil的帮助文档中:
By default, the linker places input sections in a specific order within an execution region.

The sections are placed in the following order:
1、By attribute as follows:
a.Read-only code.
b.Read-only data.
c.Read-write code.
d.Read-write data.
e.Zero-initialized data.
2、By input section name if they have the same attributes. Names are considered to be case-sensitive and are compared in alphabetical order using the ASCII collation sequence for characters.
3、By a tie-breaker if they have the same attributes and section names. By default, it is the order that armlink processes the section. You can override this with the FIRST or LAST execution region attribute.
关键在于第2项“By input section name”

zmh169 发表于 2016-3-21 14:56:44

学习一下,精华帖,还没怎么看懂

zhanglongbao 发表于 2016-4-18 14:21:22

受益了,谢谢大侠们

pazulin 发表于 2016-4-18 14:22:47

我也遇到stack过小而出问题

日日♂夜夜 发表于 2016-4-18 17:49:06

后排围观大神讨论

unnormal 发表于 2016-4-21 06:54:00

进来学习,谢谢分享

chengying 发表于 2017-4-19 15:53:56

不错,学习了

zlogon 发表于 2017-4-20 10:55:19

老帖有新意,敬佩

yinnianlong 发表于 2017-5-25 08:51:37

分析的精彩

Traveler 发表于 2017-5-27 20:18:00

学习了!!!!!

skype 发表于 2017-11-28 10:21:57

不错,这些一般都是没有人去关注的东西,讲得好!

expresschs 发表于 2018-6-15 10:27:47

以前没注意到这个问题,学习了
页: 1 [2]
查看完整版本: 问个只要用Cortex-M单片机都会遇到的问题,关于堆栈的!!