Thumb_to_ARM

所属分类:处理器开发
开发工具:C/C++
文件大小:25KB
下载次数:6
上传日期:2009-08-12 17:41:27
上 传 者要不要想你
说明:  ARM 状态到 Thumb切换的例程,为了增强系统的灵活性以及提高系统的整体性能经常需要使用16位的Thumb指令,所以需要在ARM和Thumb状态之间来切换。
(ARM state to Thumb switch routine, in order to enhance the flexibility of the system and to improve the overall performance of the system often need to use 16-bit Thumb instructions, there is a need in the ARM and Thumb state to switch between.)

文件列表:
armtothumb.bat (153, 2002-07-15)
Thumb_to_ARM.mcp (381860, 2002-07-15)
thumbmain.c (201, 2002-07-15)
thumbsub.c (102, 2002-07-15)
thumbtoarm.bat (153, 2002-07-15)
ARM_to_Thumb.mcp (381860, 2002-07-15)
armmain.c (201, 2002-07-15)
armsub.c (98, 2002-07-15)

interwork ========= This directory contains two simple projects to illustrate ARM/Thumb interworking with C code. CodeWarrior project files and script (batch) files are provided. For details, see the Developer Guide, Chapter 3, "Interworking ARM and Thumb". The two projects show: 1. An ARM main() calling a Thumb subroutine 2. A Thumb main() calling an ARM subroutine In both cases, the linker pulls in the appropriate C library, and adds interworking veneers. The added veneers are shown with the linker '-info veneers' option. 1. ARM (main) code calling a Thumb subroutine The two files in this project are armmain.c and thumbsub.c. Use the CodeWarrior project file ARM_to_Thumb.mcp to build the project. Alternatively execute the command-line script armtothumb.bat. armcc -c -g -O1 -apcs /interwork armmain.c tcc -c -g -O1 -apcs /interwork thumbsub.c armlink armmain.o thumbsub.o -o armtothumb.axf -info veneers 2. Thumb (main) code calling an ARM subroutine The two files in this project are thumbain.c and armsub.c. Use the CodeWarrior project file Thumb_to_ARM.mcp to build the project. Alternatively execute the command-line script thumbtoarm.bat: tcc -c -g -O1 -apcs /interwork thumbmain.c armcc -c -g -O1 -apcs /interwork armsub.c armlink thumbmain.o armsub.o -o thumbtoarm.axf -info veneers

近期下载者

相关文件


收藏者