摘要: From:http://alpha-blog.wanglianghome.org/2011/04/07/gcc-inline-asm/在使用高级语言编写程序的时候,可以根据需要插入汇编程序,无须另外创建汇编文件。在编写inline asm程序时,需要使用asm关键字,并将汇编程序用括号括起来,以分号结尾。格式如下:asm(code : output operand list : input operand list : clobber list);如果最右侧的部分为空,可以联通相邻的冒号一起省略。最简单的形式是只有指令部分,如:asm("mov r0,r0");复杂的形式则 阅读全文
posted @ 2013-03-12 19:54 super119 阅读(849) 评论(0) 推荐(0)