- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用基于 GCC 的编译器处理 PPC 微 Controller (特别是 e200z4)。如果我们定义一个大小小于定义数量的变量(我的例子是 8),PPC EABI 支持小数据分配。我的理解是:
我不知道的是sbss2和sdata2的意义,通过阅读PPC EABI规范?它们会是 RAM 或 Flash 上的小变量吗?它们是否与 sdata 和 sbss 不同?
最佳答案
来自EABI
External variables that are scalars of 8 or fewer bytes, whose values might be changed by the program, and whose values will not be changed outside of the program, shall be accessed as .sdata or .sbss entries...
When the object file is not to be part of a shared object file, external variables that are scalars of 8 or fewer bytes, whose values cannot be changed by the program, and whose values will not be changed outside of the program, shall be accessed as .sdata2 or .sbss2 entries...
The special section .sdata2 is intended to hold initialized read-only small data that contribute to the program memory image. The section can, however, be used to hold writable data. The special section .sbss2 is intended to hold writable small data that contribute to the program memory image and whose initial values are 0.
关于c - sbss2/sdata2有什么意义?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61319596/
我是一名优秀的程序员,十分优秀!