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
using inline assembly on Cortex-M3 using RVCT 4.0
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
3 replies
Subscribers
126 subscribers
Views
3446 views
Users
0 members are here
Related
using inline assembly on Cortex-M3 using RVCT 4.0
Offline
Abhinav Varma
over 7 years ago
Note: This was originally posted on 20th August 2010 at http://forums.arm.com
Hey all,
While migrating from arm-gcc to armcc, I am facing the following problem - There is an inline code which is giving error.
"abc.c", line 162: Error: #1113: Inline assembler not permitted when generating Thumb code
__asm__ __volatile__("wfi");
^
What should be done to get the code running.
I am using Cortex M3 processor and RVDS 4.0.
Thanks and Regards
Abhinav Varma
Parents
Offline
Mohamed Jauhar
over 7 years ago
Note: This was originally posted on 23rd November 2012 at
http://forums.arm.com
can you help for inline in gcc ;
i am facing some issue with assembler, please see the belwo details;
Hi,
I am getting below error message for arm inlin in gcc compiler , could you please tell me what
is the reason.
I am using Coretex-A9 processor.
for example
inline asm code
asm (
"rsbs" dumy, shift_value, 0 "\n\t"
"movmi " L_var_out, value, "asr" shift_value"\n\t"
"movpl" L_var_out, value, "lsl" dumy
);
====================================
Below error i got .........
tmp/ccTkbhQl.s:24: Error: ARM register expected -- `smulwb result,a,b MOV result,result,LSL#1'
/tmp/ccTkbhQl.s:41: Error: ARM register expected -- `rsbs dumy,shift_value,0movmi
L_var_out,value,asr shift_valuemovpl L_var_out,value,lsl dumy'
/tmp/ccTkbhQl.s:58: Error: ARM register expected -- `cmp L_var1,0MVNLTS L_var1,L_var1MOVEQ
var_out,32 CLZGT var_out,L_var1SUB var_out,var_out,1'
Cancel
Up
0
Down
Reply
Cancel
Reply
Offline
Mohamed Jauhar
over 7 years ago
Note: This was originally posted on 23rd November 2012 at
http://forums.arm.com
can you help for inline in gcc ;
i am facing some issue with assembler, please see the belwo details;
Hi,
I am getting below error message for arm inlin in gcc compiler , could you please tell me what
is the reason.
I am using Coretex-A9 processor.
for example
inline asm code
asm (
"rsbs" dumy, shift_value, 0 "\n\t"
"movmi " L_var_out, value, "asr" shift_value"\n\t"
"movpl" L_var_out, value, "lsl" dumy
);
====================================
Below error i got .........
tmp/ccTkbhQl.s:24: Error: ARM register expected -- `smulwb result,a,b MOV result,result,LSL#1'
/tmp/ccTkbhQl.s:41: Error: ARM register expected -- `rsbs dumy,shift_value,0movmi
L_var_out,value,asr shift_valuemovpl L_var_out,value,lsl dumy'
/tmp/ccTkbhQl.s:58: Error: ARM register expected -- `cmp L_var1,0MVNLTS L_var1,L_var1MOVEQ
var_out,32 CLZGT var_out,L_var1SUB var_out,var_out,1'
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
Suggested Answer
ARM development studio with ARM Juno r2 board
0
Juno Arm Development Platform
Arm Development Studio
Products
Arm Support
9042
views
2
replies
Latest
5 months ago
by
Ronan Synnott
Answered
"Unable to execute remote query (response code 503) " issue
0
8678
views
1
reply
Latest
5 months ago
by
Ronan Synnott
Answered
Where can I download DS-5 hardware firmware??
+1
8119
views
1
reply
Latest
5 months ago
by
Ronan Synnott
Not Answered
freeRTOS demo DS-5 ERROR(CMD360) when trying to debug
+1
13418
views
12
replies
Latest
6 months ago
by
tolc
Answered
ubuntu - How to uninstall Arm Development studio and all its requirements
0
Arm Development Studio
9069
views
1
reply
Latest
6 months ago
by
Jonathan Simmonds
<
>
View all questions in Arm Development Studio forum