打印
[技术问答]

问下KEIL设置选项里面这两句话有什么差别???? [

[复制链接]
1996|20
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
在Linker的Misc controls那里这两句话的差别是什么???
--map --first='startup_NUC131.o(RESET)' --datacompressor=off --info=inline --entry Reset_Handler
--entry Reset_Handler
具体代表什么意思???



沙发
dongnanxibei| | 2016-8-26 21:38 | 只看该作者
什么内联函数,什么数据压缩。。。。莫非是

使用特权

评论回复
板凳
dongnanxibei| | 2016-8-26 21:40 | 只看该作者
真心找不到相关的解释,帮助里好像都没

使用特权

评论回复
地板
dongnanxibei| | 2016-8-26 21:44 | 只看该作者

使用特权

评论回复
5
zhuomuniao110| | 2016-8-26 23:17 | 只看该作者
复位处理函数吗?是不是关闭优化代码

使用特权

评论回复
6
gejigeji521| | 2016-8-27 13:02 | 只看该作者
配置这个需要自己做吗,以前我都没管过这些。

使用特权

评论回复
7
天灵灵地灵灵| | 2016-8-27 14:39 | 只看该作者
我了个去,从来没关注过这些。

使用特权

评论回复
8
we167527|  楼主 | 2016-8-27 15:17 | 只看该作者
dongnanxibei 发表于 2016-8-26 21:40
真心找不到相关的解释,帮助里好像都没

我只知道--entry Reset_Handler这个是进入Reset_Handler中断的。其他都不知道

使用特权

评论回复
9
we167527|  楼主 | 2016-8-27 15:30 | 只看该作者
gejigeji521 发表于 2016-8-27 13:02
配置这个需要自己做吗,以前我都没管过这些。

要配置。不然后会一个警告!

使用特权

评论回复
10
dongnanxibei| | 2016-8-29 20:18 | 只看该作者
警告从来不担心,只要不是错误就没事,让他随便的警告。

使用特权

评论回复
11
we167527|  楼主 | 2016-9-5 17:53 | 只看该作者
dongnanxibei 发表于 2016-8-29 20:18
警告从来不担心,只要不是错误就没事,让他随便的警告。

不习惯有警告

使用特权

评论回复
12
玛尼玛尼哄| | 2016-9-5 18:18 | 只看该作者
可以在工程配置里设置一下,忽略警告,这样就不会看的任何警告了。

使用特权

评论回复
13
捉虫天师| | 2016-9-6 16:58 | 只看该作者
这个地方不设置的话,不能正常的编译成目标代码吗

使用特权

评论回复
14
dongnanxibei| | 2016-9-6 23:51 | 只看该作者
--map --first='startup_M058S.o(RESET)' --datacompressor=off --info=inline --entry Reset_Handler
这个工程默认的吧,我打开一个例程工程都是这的。

使用特权

评论回复
15
we167527|  楼主 | 2016-9-7 08:28 | 只看该作者
dongnanxibei 发表于 2016-9-6 23:51
--map --first='startup_M058S.o(RESET)' --datacompressor=off --info=inline --entry Reset_Handler
这个 ...

恩官方BSP都是这样写的。

使用特权

评论回复
16
dongnanxibei| | 2016-9-7 23:46 | 只看该作者
我觉得这个不必纠结,别管就行了。反正能用。如果纠结,那这个软件配置的地方 太多了,,够你玩一年的

使用特权

评论回复
17
tcchiu1| | 2016-9-8 09:27 | 只看该作者
这是Linker的参数,细节就要看keil的说明。
http://www.keil.com/support/man/ ... ge1362075463332.htm

使用特权

评论回复
18
huangcunxiake| | 2016-9-8 11:46 | 只看该作者
--entry=location
Home » Linker Command-line Options » --entry=location
9.40 --entry=location
Specifies the unique initial entry point of the image. Although an image can have multiple entry points, only one can be the initial entry point.
Syntax--entry=locationWhere location is one of the following:
entry_addressA numerical value, for example: --entry=0x0
symbolSpecifies an image entry point as the address of symbol, for example: --entry=reset_handler
offset+object(section)Specifies an image entry point as an offset inside a section within a particular object, for example:--entry=8+startup.o(startupseg)
There must be no spaces within the argument to --entry. The input section and object names are matched without case-sensitivity. You can use the following simplified notation:
  • object(section), if offset is zero.
  • object, if there is only one input section. armlink generates an error message if there is more than one code input section in object.
NoteIf the entry address of your image is in Thumb state, then the least significant bit of the address must be set to 1. The linker does this automatically if you specify a symbol. For example, if the entry code starts at address 0x8000 in Thumb state you must use --entry=0x8001.
UsageThe image can contain multiple entry points. Multiple entry points might be specified with the ENTRY directive in assembler source files. In such cases, a unique initial entry point must be specified for an image, otherwise the error L6305E is generated. The initial entry point specified with the --entry option is stored in the executable file header for use by the loader. There can be only one occurrence of this option on the command line. A debugger typically uses this entry address to initialize the Program Counter (PC) when an image is loaded. The initial entry point must meet the following conditions:
  • The image entry point must lie within an execution region.
  • The execution region must be non-overlay, and must be a root execution region (load address == execution address).


Related reference9.108 --startup=symbol, --no_startup

Related informationENTRY directive


Related Knowledgebase Articles


使用特权

评论回复
19
john_lee| | 2016-9-8 19:13 | 只看该作者
编译器、链接器相关的信息资料,一定在随机安装的 help 中能找到,不用上网。

勤奋+合适的方法。

使用特权

评论回复
20
we167527|  楼主 | 2016-10-27 16:57 | 只看该作者
huangcunxiake 发表于 2016-9-8 11:46
--entry=locationHome » Linker Command-line Options » --entry=location9.40  ...

这是什么???

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

个人签名:联系方式: QQ:864095840 邮箱:86095840@qq.com

54

主题

294

帖子

6

粉丝