interwork

所属分类:界面编程
开发工具:C/C++
文件大小:25KB
下载次数:4
上传日期:2008-01-12 12:09:33
上 传 者huronghua666
说明:  界面和通讯交互式工作的例程, 供参考设计,有很大的借鉴哦
(Interactive interface and communications work routines for the reference design, there are a lot of reference Oh)

文件列表:
interwork\armsub.c (98, 1999-08-09)
interwork\ARM_to_Thumb.mcp (381860, 2001-11-06)
interwork\Thumb_to_ARM.mcp (381860, 2001-11-06)
interwork\armmain.c (201, 1999-08-09)
interwork\armtothumb.bat (153, 1999-08-09)
interwork\thumbmain.c (201, 1999-08-09)
interwork\thumbsub.c (102, 1999-08-09)
interwork\thumbtoarm.bat (153, 1999-08-09)
interwork (0, 2008-01-12)

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

近期下载者

相关文件


收藏者