Arm Community
Site
Search
User
Site
Search
User
Groups
Education Hub
Distinguished Ambassadors
Open Source Software and Platforms
Research Collaboration and Enablement
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
SystemReady 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
Internet of Things (IoT) blog
Operating Systems blog
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
Architectures and Processors forum
Instruction width selection - forward/external reference
Jump...
Cancel
State
Suggested Answer
Locked
Locked
Replies
3 replies
Answers
2 answers
Subscribers
349 subscribers
Views
3135 views
Users
0 members are here
Thumb2
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
Instruction width selection - forward/external reference
Osccon
over 6 years ago
Hi,
I am learning the Thumb 2 instruction set and at the moment I am trying to understand when to use the instruction width specifier.
e.g.:
ldmia.w sp!,{r3,lr}
I understand sometimes it is necessary to make some instructions 32 bit wide because the content/addresses is/are not fitting into the 16 bit encoding.
But reading the
ARM Keil explanation
about it I am wondering what exactly is meant by
internal/external reference
?
And more precisely when I have to worry about adding
.w
and when not?
Top replies
42Bastian Schick
over 6 years ago
+1
suggested
In general, the assembler will take care. You only need to worry about it if you want to force a special instruction. I suggest to read the relevant reference manual as it lists all opcodes and the syntax...
Joseph Yiu
over 6 years ago
+1
suggested
In the case of using Branch instructions in assembly programming, if the branch target is in a different object file (i.e. extern), then you might need to specify 32-bit version of branch instructions...