[ArmCompiler6--armlink]Keil-MDK中scatter file语法
2017-04-27 11:59
2326 查看
简述
keil MDK IDE目前在MCU开发中使用非常广泛,有些时候可能要做一些代码移植,或者更加灵活的处理memory的问题,就需要用到scatter file了,这里对scatter file的一些写法做些学习。典型的scatter file结构
load region的描述
load_region_description ::= load_region_name (base_address | ("+" offset)) [attribute_list] [max_size] "{" execution_region_description+ "}"
这里需要对attribute_list做下详细介绍:
Attr | 说明 |
---|---|
ABSOLUTE | 指定链接地址 |
ALIGN alignment | 为load region增加分配限制,从4到alignment |
NOCOMPRESS | 默认RW数据压缩是启用的,该属性将指定load region中某些内容不能压缩 |
OVERLAY | 运行在同一地址有多个load region的重叠,但是ARM工具并不允许重叠,因此需要自己提供重叠管理 |
PI | 位置独立 |
execution region的描述
execution_region_description ::= exec_region_name (base_address | "+" offset) [attribute_list] [max_size | length] "{" input_section_description* "}"
attribute_list和load region的类似
input section description
input_section_description ::= module_select_pattern [ "(" input_section_selector ( "," input_section_selector )* ")" ]input_section_selector ::= "+" input_section_attr | input_section_pattern | input_section_type | input_symbol_pattern | section_properties
描述项 | 说明 |
---|---|
Module name | object filename, lib member name, lib filename |
Input section name | section name, type or attributes(READ-ONLY, CODE) |
Symbol name | 符号 |
相关文章推荐
- [ArmCompiler6--armlink]Keil-MDK中scatter load机制
- armlink - Scatter file文件实现将函数放在指定内存地址
- ARMLink scatter file(1)
- ARMLink scatter file(2)
- armlink - Scatter file文件格式
- armlink - Scatter file文件格式
- armlink scatter file
- Keil(MDK-ARM)使用教程(三)_在线调试
- 为arm和51单片机安装keil(MDK)软件
- ARM 7 用户模式下禁止/使能中断的一种方法--使用软中断 for Keil MDK
- 在KEIL中使用MDK-ARM开发cortex-m4
- ARM Keil MDK开发STM32工程模板
- Keil(MDK-ARM)使用教程(一)_界面+菜单
- Keil C51与 RealView MDK兼容分别开发C51和ARM
- KEIL uVision,KEIL MDK,KEIL For ARM,RealView MDK,KEIL C51,KEIL C166,KEIL C251
- Keil(MDK-ARM)在线调试(Ⅰ)(转)
- Keil(MDK-ARM)使用教程(三)_在线调试
- ARM--------解决ads工程转到MDK(keil)可能出现的error
- MDK/Keil 中,J-Link调试查看变量值总是显示<not in scope>
- ARM Scatter File详解