Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
Concept of Scratch and Preserved Registers
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
4 replies
Subscribers
126 subscribers
Views
11867 views
Users
0 members are here
Related
Concept of Scratch and Preserved Registers
Offline
Muhammad Ahsan
over 7 years ago
Hi,
I am confused in understanding the difference between scratch and preserved registers. I have read the development guide of IAR Embedded Workbench but the topic was written in such a way that I could not get the real sence of it.
Any help or if possible some example that can help me differenciating between the both will be regarded.
Thanks in advance
Top replies
Offline
Martin Weidmann
over 7 years ago
+1
Note: This was originally posted on 5th April 2011 at http://forums.arm.com I've not used IAR's tools, but I'm assuming it follows the AAPCS (Procedure Call Standard for the ARM Architecture). The AAPCS...
Parents
Offline
Alexei Toumantsev
over 7 years ago
Note: This was originally posted on 5th April 2011 at
http://forums.arm.com
r4-r11 - protected
And r13, r14 too, of course. To the OP - AAPCS is what you need to google for.
Note that the rules stated above are not any sort of 'restrictions' imposed by ARM CPU, some people get confused by this.
All registers in ARM (except for r14 (lr) and r15 (pc)) are mutually interchangeable ("equal in rights").
But most compilers follow the AAPCS rules to avoid compatibility problems (otherwise, it would be difficult to link together libraries produced with different compilers, for example).
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Alexei Toumantsev
over 7 years ago
Note: This was originally posted on 5th April 2011 at
http://forums.arm.com
r4-r11 - protected
And r13, r14 too, of course. To the OP - AAPCS is what you need to google for.
Note that the rules stated above are not any sort of 'restrictions' imposed by ARM CPU, some people get confused by this.
All registers in ARM (except for r14 (lr) and r15 (pc)) are mutually interchangeable ("equal in rights").
But most compilers follow the AAPCS rules to avoid compatibility problems (otherwise, it would be difficult to link together libraries produced with different compilers, for example).
Cancel
Up
0
Down
Reply
Cancel
Children
No data
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Not Answered
Where can I download DS-5 hardware firmware??
0
7957
views
1
reply
Latest
4 months ago
by
Ronan Synnott
Not Answered
Getting errors after including arm_math.h
0
stm32 h7
Keil
Digital Signal Processor (DSP)
STM32
28149
views
9
replies
Latest
4 months ago
by
roger-liu
Not Answered
freeRTOS demo DS-5 ERROR(CMD360) when trying to debug
+1
13182
views
12
replies
Latest
5 months ago
by
tolc
Answered
ubuntu - How to uninstall Arm Development studio and all its requirements
0
Arm Development Studio
8954
views
1
reply
Latest
5 months ago
by
Jonathan Simmonds
Answered
DSTREAM Probe damage - Spare parts?
0
DSTREAM
11203
views
2
replies
Latest
5 months ago
by
SamGKN
<
>
View all questions in Arm Development Studio forum