你的浏览器版本过低,可能导致网站不能正常访问!
为了你能正常使用网站功能,请使用这些浏览器。

关于Keil编译用到的基础库

[复制链接]
bleukey 提问时间:2015-9-28 15:53 /
怎么判断Keil编译时用到的基础库名字,在Linker选项里好像没有体现的。include是-I中有,而库的路径怎么判断?
ARM\ARMCC\lib\armlib下面一堆.l .b的文件,怎么和CPU类型联系起来?
收藏 评论6 发布时间:2015-9-28 15:53

举报

6个回答
你好我好大家好! 回答时间:2015-9-28 17:01:33
帮顶                 
wyxy163@126.com 回答时间:2015-9-29 08:21:09
提示: 作者被禁止或删除 内容自动屏蔽
JackieLaura 回答时间:2015-9-29 09:01:29
IDE默认包含
stmcu.org.png
Mandelbrot_Set 回答时间:2015-9-29 09:36:23
默认 ARMLIB
--libpath 可以指定.
手册上有描述:
The libraries are installed in subdirectories of the lib directory:

armlib
Contains the variants of the ARM C library, the floating-point arithmetic library (fplib), and the math library (mathlib).

cpplib
Contains the variants of the Rogue Wave C++ library (cpp_*) and supporting ARM C++ functions (cpprt_*), referred to collectively as the ARM C++ Libraries.

The accompanying header files for these libraries are installed in the inc directory.

The environment variable ARMCCnnLIB must be set to point to the lib directory, or if this variable is not set, ARMLIB. Alternatively, use the --libpath argument to the linker to identify the directory holding the library subdirectories. You must not identify the armlib and cpplib directories separately because this directory structure might change in future releases. The linker finds them from the location of lib.
bleukey 回答时间:2015-9-29 10:41:22
感谢回复,知道是自动包含。问题是armlib下面有很多类似的lib文件,估计linker会根据cpu类型连接不同的lib,我想把.l和.b文件按CPU类型归下类。比如Cortex M3会关联哪些.l的文件。
Mandelbrot_Set 回答时间:2015-9-29 16:17:38
bleukey 发表于 2015-9-29 10:41
感谢回复,知道是自动包含。问题是armlib下面有很多类似的lib文件,估计linker会根据cpu类型连接不同的lib ...

有的应该跟lib的实现方法有关.
The default floating-point arithmetic libraries fz_* and fj_* do not use static data and are always reentrant. However, the f_* and g_* libraries do use static data.
(摘自手册)
*.b , *.l 应该是大端小端.

所属标签

相似问题

关于意法半导体
我们是谁
投资者关系
意法半导体可持续发展举措
创新与技术
招聘信息
联系我们
联系ST分支机构
寻找销售人员和分销渠道
社区
媒体中心
活动与培训
隐私策略
隐私策略
Cookies管理
行使您的权利
关注我们
st-img 微信公众号
st-img 手机版