没有合适的资源?快使用搜索试试~ 我知道了~
首页IAR STM8开发手册
When you start using the IAR C/C++ compiler and linker for STM8, you should read Part 1. Using the build tools in this guide. When you are familiar with the compiler and linker and have already configured your project, you can focus more on Part 2. Reference information. If you are new to using the IAR Systems build tools, we recommend that you first study the IAR Embedded Workbench® IDE User Guide. This guide contains a product overview, tutorials that can help you get started, conceptual and user information about the IDE and the IAR C-SPY® Debugger, and corresponding reference information.
资源详情
资源评论
资源推荐
DSTM8-2
IAR C/C++ Development Guide
Compiling and Linking
for STMicroelectronics’
STM8 Microcontroller Family
DSTM8-2
DSTM8-2
COPYRIGHT NOTICE
Copyright © 2010 IAR Systems AB.
No part of this document may be reproduced without the prior written consent of IAR
Systems AB. The software described in this document is furnished under a license and
may only be used or copied in accordance with the terms of such a license.
DISCLAIMER
The information in this document is subject to change without notice and does not
represent a commitment on any part of IAR Systems. While the information contained
herein is assumed to be accurate, IAR Systems assumes no responsibility for any errors
or omissions.
In no event shall IAR Systems, its employees, its contractors, or the authors of this
document be liable for special, direct, indirect, or consequential damage, losses, costs,
charges, claims, demands, claim for lost profits, fees, or expenses of any nature or kind.
TRADEMARKS
IAR Systems, IAR Embedded Workbench, C-SPY, visualSTATE, From Idea To Target,
IAR KickStart Kit, IAR PowerPac, IAR YellowSuite, IAR Advanced Development Kit,
IAR, and the IAR Systems logotype are trademarks or registered trademarks owned by
IAR Systems AB. J-Link is a trademark licensed to IAR Systems AB.
Microsoft and Windows are registered trademarks of Microsoft Corporation.
STMicroelectronics is a registered trademark of STMicroelectronics Corporation.
STM8 is a trademark of STMicroelectronics Corporation.
All other product names are trademarks or registered trademarks of their respective
owners.
EDITION NOTICE
Second edition: April 2010
Part number: DSTM8-2
This guide applies to version 1.x of IAR Embedded Workbench® for STM8.
Internal reference: M3, Too6.0, csrct2010.1, V_100308, IMAE.
DSTM8-2
iii
Brief contents
Tables .................................................................................................................... xxv
Preface ................................................................................................................ xxvii
Part 1. Using the build tools ..................................................... 1
Introduction to the IAR build tools .......................................................... 3
Developing embedded applications ........................................................... 9
Data storage ...................................................................................................... 23
Functions ............................................................................................................... 35
Linking using ILINK ........................................................................................ 43
Linking your application ................................................................................ 53
The DLIB runtime environment .............................................................. 65
Assembler language interface ................................................................... 95
Using C ................................................................................................................ 117
Using C++ .......................................................................................................... 127
Application-related considerations ....................................................... 139
Efficient coding for embedded applications ...................................... 147
Part 2. Reference information ........................................... 165
External interface details ............................................................................ 167
Compiler options ........................................................................................... 177
Linker options .................................................................................................. 207
Data representation ...................................................................................... 225
Extended keywords ....................................................................................... 237
DSTM8-2
iv
IAR C/C++ Development Guide
Compiling and Linking for STM8
Pragma directives ............................................................................................ 249
Intrinsic functions ........................................................................................... 265
The preprocessor ........................................................................................... 269
Library functions ............................................................................................. 275
The linker configuration file ...................................................................... 283
Section reference ............................................................................................ 305
IAR utilities ........................................................................................................ 315
Implementation-defined behavior .......................................................... 345
Index ..................................................................................................................... 361
DSTM8-2
v
Contents
Tables .................................................................................................................... xxv
Preface ................................................................................................................ xxvii
Who should read this guide ...........................................................xxvii
How to use this guide ......................................................................xxvii
What this guide contains ..............................................................xxviii
Other documentation ........................................................................ xxix
Further reading ................................................................................. xxx
Document conventions ...................................................................... xxx
Typographic conventions ................................................................ xxxi
Naming conventions .......................................................................xxxi
Part 1. Using the build tools ..................................................... 1
Introduction to the IAR build tools .......................................................... 3
The IAR build tools—an overview ..................................................... 3
IAR C/C++ Compiler ........................................................................... 3
IAR Assembler ..................................................................................... 4
The IAR ILINK Linker ........................................................................ 4
Specific ELF tools ................................................................................ 4
External tools ....................................................................................... 4
IAR language overview ........................................................................... 5
Device support ........................................................................................... 5
Supported STM8 devices ..................................................................... 6
Preconfigured support files .................................................................. 6
Examples for getting started ................................................................ 6
Special support for embedded systems .......................................... 6
Extended keywords .............................................................................. 7
Pragma directives ................................................................................. 7
Predefined symbols .............................................................................. 7
Special function types .......................................................................... 7
Accessing low-level features ............................................................... 7
剩余415页未读,继续阅读
51learner
- 粉丝: 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直接复制
信息提交成功
评论1