GNU/GCC , arm-none-eabi-gcc 不识别__attribute__((at(xxx))); 请问如何把大数组定义在SDRAM

2019-07-20 05:30发布

使用GNU/GCC , arm-none-eabi-gcc 不识别__attribute__((at(0X68000000)));       

请问需要怎么搞, 把大数组放在SDRAM中?  谢谢

看资料可以类似使用 __attribute__ (( section (".ext1text") )), 请问LD文件怎么写? 谢谢!

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
10条回答
rockzhou
1楼-- · 2019-07-20 20:33
 精彩回答 2  元偷偷看……
rockzhou
2楼-- · 2019-07-20 21:30
edmund1234 发表于 2018-9-11 21:17
之前因编译器升到6.0, 也出现同样的问题, 据说明书说是改了格式, 按着说明书的改就行了
不想改可以选择 ...

arm-none-eabi-gcc -v

gcc version 5.4.1 20160919 (release) [ARM/embedded-5-branch revision 240496] (GNU Tools for ARM Embedded Processors)

请问怎么修改?
emWin
3楼-- · 2019-07-21 00:04
本帖最后由 emWin 于 2018-9-12 15:19 编辑

类似问题可查阅,GNU Linker Manual:
[mw_shl_code=c,true]Figure 11. Assigning an object to a named memory section.
int x __attribute__((section("section_name")));[/mw_shl_code]

An Introduction to the GNU Compiler and Linker.pdf (116.55 KB, 下载次数: 77) 2018-9-12 15:19 上传 点击文件名下载附件
斯豪
4楼-- · 2019-07-21 02:28
 精彩回答 2  元偷偷看……

一周热门 更多>