没有合适的资源?快使用搜索试试~ 我知道了~
首页ARM编译器C库的启动和初始化
ARM编译器C库的启动和初始化
需积分: 33 11 下载量 82 浏览量
更新于2023-03-16
评论
收藏 129KB PDF 举报
学习stm32f103启动过程,系统自动调用_main函数后进行一系列初始化操作,其中包括调用一些C库函数,该PDF从ARM官网下载,介绍_main函数调用相关C库函数进行初始化操作。
资源详情
资源评论
资源推荐
Application Note 241
ARM Compiler C Library Startup and Initialization
Document number: ARM DAI 0241B
Copyright ARM Limited 2010, 2014
Non-Confidential
2 Copyright
©
2010, 2014 ARM. All rights reserved. ARM DAI 0241B
Non-Confidential
Application Note 241
ARM Compiler C Library Startup and Initialization
Copyright © 2010, 2014 ARM Limited. All rights reserved.
Release information
The following table lists the changes made to this document.
Change history
Date Issue Change
2 December 2010 A ARM Compiler toolchain v4.1 build 561 Release
24 January 2014 B Generic document for all ARM Compiler releases
Proprietary notice
Words and logos marked with
®
and
™
are registered trademarks or trademarks of ARM
®
in the EU
and other countries, except as otherwise stated below in this proprietary notice. Other brands and
names mentioned herein may be the trademarks of their respective owners.
Neither the whole nor any part of the information contained in, or the product described in, this
document may be adapted or reproduced in any material form except with the prior written
permission of the copyright holder.
The product described in this document is subject to continuous developments and improvements.
All particulars of the product and its use contained in this document are given by ARM in good faith.
However, all warranties implied or expressed, including but not limited to implied warranties of
merchantability, or fitness for purpose, are excluded.
This document is intended only to assist the reader in the use of the product. ARM shall not be liable
for any loss or damage arising from the use of any information in this document, or any error or
omission in such information, or any incorrect use of the product.
Where the term ARM is used it means “ARM or any of its subsidiaries as appropriate”.
Confidentiality status
This document is Non-Confidential. This document may only be used and distributed in accordance
with the terms of the agreement entered into by ARM and the party that ARM delivered this
document to.
Feedback on this application note
If you have any comments on content then send an e-mail to errata@arm.com. Give:
• the document title
• the document number
• the page numbers to which your comments apply
• a concise explanation of your comments.
ARM also welcomes general suggestions for additions and improvements.
ARM web address
http://www.arm.com
Table of Contents
ARM DAI 0241B Copyright
©
2010, 2014 ARM. All rights reserved. 3
Non-Confidential
Table of Contents
1 Introduction ................................................................................................................ 4
1.1 Version ................................................................................................................ 4
1.2 Additional reading ............................................................................................... 4
2 Startup code ............................................................................................................... 5
3 Entry point to the C library ....................................................................................... 6
3.1 __scatterload ...................................................................................................... 6
3.2 See also .............................................................................................................. 6
4 Functions called by __rt_entry ................................................................................. 8
4.1 _platform_pre_stackheap_init ............................................................................ 8
4.2 __user_setup_stackheap ................................................................................... 8
4.3 _platform_post_stackheap_init ........................................................................... 9
4.4 __rt_lib_init ......................................................................................................... 9
4.5 _platform_post_lib_init ........................................................................................ 9
4.6 See also .............................................................................................................. 9
5 Functions called by __rt_lib_init ............................................................................ 11
5.1 _fp_init .............................................................................................................. 11
5.2 _init_alloc .......................................................................................................... 11
5.3 _rand_init .......................................................................................................... 12
5.4 _get_lc_collate .................................................................................................. 12
5.5 _get_lc_ctype.................................................................................................... 12
5.6 _get_lc_monetary ............................................................................................. 12
5.7 _get_lc_numeric ............................................................................................... 12
5.8 _get_lc_time ..................................................................................................... 12
5.9 _atexit_init ......................................................................................................... 12
5.10 _signal_init ........................................................................................................ 13
5.11 _fp_trap_init ...................................................................................................... 13
5.12 _clock_init ......................................................................................................... 13
5.13 _getenv_init ...................................................................................................... 13
5.14 _initio ................................................................................................................ 13
5.15 __ARM_get_argv .............................................................................................. 13
5.16 __alloca_initialize ............................................................................................. 14
5.17 __ARM_exceptions_init .................................................................................... 14
5.18 __cpp_initialize__aeabi_ .................................................................................. 14
5.19 See also ............................................................................................................ 14
6 Appendix................................................................................................................... 15
Introduction
1 Introduction
This document describes the C library startup code and the initialization functions that
might be called during the startup of an application that has been compiled using the ARM
Compiler. The document gives an overview of what the functions in the startup code do,
and why they are present. You can use this document to verify the startup code of your
application.
1.1 Version
This document describes the startup code for ARM Compiler. Functions in the startup code
might change between different releases and patches of the toolchain. This document
makes no guarantee about the continued operation of the library startup code in later
releases or patches of the toolchain.
1.2 Additional reading
This section lists publications by ARM and by third parties.
See Infocenter,
http://infocenter.arm.com, for access to ARM documentation.
1.2.1 ARM publications
The following documents contain information relevant to this document:
• ARM Compiler toolchain Developing Software for ARM Processors
(ARM DUI 0471)
• ARM Compiler toolchain ARM C and C++ Libraries and Floating-Point Support
Reference (ARM DUI 0492)
• ARM Compiler toolchain Using ARM C and C++ Libraries and Floating-Point
Support (ARM DUI 0475)
• ARM Compiler toolchain Linker Reference (ARM DUI 0493).
4 Copyright
©
2010, 2014 ARM. All rights reserved. ARM DAI 0241B
Non-Confidential
剩余15页未读,继续阅读
JChenne
- 粉丝: 0
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
- SPC统计方法基础知识.pptx
- MW全能培训汽轮机调节保安系统PPT教学课件.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0