Arm Community
Site
Search
User
Site
Search
User
Groups
Research Collaboration and Enablement
DesignStart
Education Hub
Innovation
Open Source Software and Platforms
Forums
AI and ML forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Arm Virtual Hardware forum
Automotive forum
Compilers and Libraries forum
Graphics, Gaming, and VR forum
High Performance Computing (HPC) forum
Infrastructure Solutions forum
Internet of Things (IoT) forum
Keil forum
Morello Forum
Operating Systems forum
SoC Design and Simulation forum
中文社区论区
Blogs
AI and ML blog
Announcements
Architectures and Processors blog
Automotive blog
Graphics, Gaming, and VR blog
High Performance Computing (HPC) blog
Infrastructure Solutions blog
Innovation blog
Internet of Things (IoT) blog
Operating Systems blog
Research Articles
SoC Design and Simulation blog
Tools, Software and IDEs blog
中文社区博客
Support
Arm Support Services
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Support forums
Arm Development Studio forum
Help in keil uvision4
Jump...
Cancel
Locked
Locked
Replies
3 replies
Subscribers
121 subscribers
Views
3894 views
Users
0 members are here
Options
Share
More actions
Cancel
Related
How was your experience today?
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion
Help in keil uvision4
Offline
amardeep singh
over 9 years ago
Note: This was originally posted on 15th August 2010 at
http://forums.arm.com
hii.
can some tell me in keil uvision4 why startup code is required..help plz
Parents
Offline
Joseph Yiu
over 9 years ago
Note: This was originally posted on 17th August 2010 at
http://forums.arm.com
Your question should be : "why processors need startup code?"
This is not limited to Keil MDK, it is common requirement for most processors.
In order to run a compiled C program, the stack pointers and data used by the C libraries need to be setup.
This cannot be done easily in standard C (ISO C) language. (Not impossible, but require compiler specific features).
In addition, some processors need to have a vector table for define interrupt/exception handlers.
There are different ways to create these information. In ARM processors startup code is used.
Keil MDK provides default startup code (in assembler) for most ARM microcontrollers, and it can be added to you project during project creation wizard. In other toolchains for ARM microcontrollers the startup code could be in C, or can be hidden from users (e.g. CS3 in CodeSourcery g++).
Cancel
Up
0
Down
Cancel
Reply
Offline
Joseph Yiu
over 9 years ago
Note: This was originally posted on 17th August 2010 at
http://forums.arm.com
Your question should be : "why processors need startup code?"
This is not limited to Keil MDK, it is common requirement for most processors.
In order to run a compiled C program, the stack pointers and data used by the C libraries need to be setup.
This cannot be done easily in standard C (ISO C) language. (Not impossible, but require compiler specific features).
In addition, some processors need to have a vector table for define interrupt/exception handlers.
There are different ways to create these information. In ARM processors startup code is used.
Keil MDK provides default startup code (in assembler) for most ARM microcontrollers, and it can be added to you project during project creation wizard. In other toolchains for ARM microcontrollers the startup code could be in C, or can be hidden from users (e.g. CS3 in CodeSourcery g++).
Cancel
Up
0
Down
Cancel
Children
No data