Arm Community
Site
Search
User
Site
Search
User
Arm Developer
Documentation
Learning Paths
On-Demand Videos
Groups
Arm Ambassadors
Education Hub
Open Source Software and Platforms
Research Collaboration and Enablement
Forums
AI forum
Architectures and Processors forum
Arm Development Platforms forum
Arm Development Studio forum
Automotive forum
Compilers and Libraries forum
Embedded and Microcontrollers forum
Internet of Things (IoT) forum
Keil forum
Laptops and Desktops forum
Mobile, Graphics, and Gaming forum
Morello forum
Operating Systems forum
Servers and Cloud Computing forum
SoC Design and Simulation forum
SystemReady Forum
Blogs
AI blog
Announcements
Architectures and Processors blog
Automotive blog
Embedded and Microcontrollers blog
Internet of Things (IoT) blog
Laptops and Desktops blog
Mobile, Graphics, and Gaming blog
Operating Systems blog
Servers and Cloud Computing 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
Arm Development Studio forum
CM3 / RVDS / NOPs
Jump...
Cancel
Locked
Locked
Replies
9 replies
Subscribers
120 subscribers
Views
4647 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
CM3 / RVDS / NOPs
David Clark
over 11 years ago
Parents
Joseph Yiu
over 11 years ago
Note: This was originally posted on 14th June 2010 at
http://forums.arm.com
Hi Wave,
I cannot reproduce the problem. For example, I use the following C code:
UartStdOutInit();
__disable_irq();
printf("Hello world\n");
__enable_irq();
UartPutc((char) 0x4);
The disassembly result is:
0x00000166: f000f849 ..I. BL UartStdOutInit ; 0x1fc
0x0000016a: b672 r. CPSID i
0x0000016c: a003 .. ADR r0,{pc}+0x10 ; 0x17c
0x0000016e: f000f86d ..m. BL __2printf ; 0x24c
0x00000172: b662 b. CPSIE i
0x00000174: 2004 . MOVS r0,#4
0x00000176: f000f84c ..L. BL UartPutc ; 0x212
I used ARM RVDS 4.0-SP3,
ARM C/C++ Compiler, RVCT4.0 [Build 650]
ARM Assembler, RVCT4.0 [Build 650]
ARM Linker, RVCT4.0 [Build 650]
armcc option : -c -O0 -W -g -Otime --cpu Cortex-M3
Could you generate a test case? Thanks
regards,
Joseph
Cancel
Vote up
0
Vote down
Cancel
Reply
Joseph Yiu
over 11 years ago
Note: This was originally posted on 14th June 2010 at
http://forums.arm.com
Hi Wave,
I cannot reproduce the problem. For example, I use the following C code:
UartStdOutInit();
__disable_irq();
printf("Hello world\n");
__enable_irq();
UartPutc((char) 0x4);
The disassembly result is:
0x00000166: f000f849 ..I. BL UartStdOutInit ; 0x1fc
0x0000016a: b672 r. CPSID i
0x0000016c: a003 .. ADR r0,{pc}+0x10 ; 0x17c
0x0000016e: f000f86d ..m. BL __2printf ; 0x24c
0x00000172: b662 b. CPSIE i
0x00000174: 2004 . MOVS r0,#4
0x00000176: f000f84c ..L. BL UartPutc ; 0x212
I used ARM RVDS 4.0-SP3,
ARM C/C++ Compiler, RVCT4.0 [Build 650]
ARM Assembler, RVCT4.0 [Build 650]
ARM Linker, RVCT4.0 [Build 650]
armcc option : -c -O0 -W -g -Otime --cpu Cortex-M3
Could you generate a test case? Thanks
regards,
Joseph
Cancel
Vote up
0
Vote down
Cancel
Children
No data