登录
首页 » c » 函数调用法

函数调用法

于 2023-03-28 发布 文件大小:2.20 kB
0 123
下载积分: 2 下载次数: 1

代码说明:

14.9 函数调用  函数设计的基本原则是使其函数体尽量的小。这样编译器可以对函数做更多的优化。  14.9.1 减少函数调用开销  ARM上的函数调用开销比非RISC体系结构上的调用开销小:  · 调用返回指令“BL”或“MOV pc,lr”一般只需要6个指令周期(ARM7上)。  · 在函数的入口和出口使用多寄存器加载/存储指令LDM和STM(Thumb指令使用PUSH和POP)提高函数体的执行效率。  ARM体系结构过程调用标准AAPCS定义了如何通过寄存器传递参数和返回值。函数中的前4个整型参数是通过ARM的前4个寄存器r0、r1、r2和r3来传递的。传递参数可以是与整型兼容的数据类型,如字符类型char、半字类型short等。 请点击左侧文件开始预览 !预览只提供20%的代码片段,完整代码需下载后查看 加载中 侵权举报

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • sports1
    用于运动会的统计.分数,那女子参赛情况的记录统计.(Statistics for the Games. Scores, and that the situation of the women)
    2008-05-14 12:42:04下载
    积分:1
  • blackhole2013-ns234-patch
    about installing ns2 in windows
    2014-06-07 21:58:13下载
    积分:1
  • LongestIncreasingSequence
    找出数组A中最长的递增序列的长度,使用动态规划算法,复杂度为O(N*N)。(Find the longest increasing sequence)
    2011-09-05 17:36:27下载
    积分:1
  • 787def9c-240a-4db3-8c63-cbfb9dbe4c4a
    ADS1258开发,程序源代码,还要20字 好恶心(ADS1258 development, source code, but also the word disgusting 20)
    2020-06-28 21:20:01下载
    积分:1
  • 180度舵机
    说明:  180度舵机可以由按键控制,缓慢转180度(The 180 degree steering gear can be controlled by keys and rotates 180 degrees slowly)
    2020-06-19 10:40:02下载
    积分:1
  • GaussJordan
    采用高斯约旦法求矩阵的逆矩阵,这种方法是选取了全主元的初等变换求逆矩阵的算法(Using Gauss-Jordan Method to Find the Inverse Matrix of Matrix)
    2020-06-23 14:00:01下载
    积分:1
  • The-OpenCL-Chinese-tutorial(AMD)
    OpenCL中文教程(AMD),最好的OpenCL教程,介绍了AMD显卡的OpenCL编程,其中有大量例程,并介绍了OpenCL优化方法(OpenCL Chinese tutorial (AMD), the best OpenCL tutorial introduces the AMD OpenCL graphics programming, including a large number of routines, and introduces OpenCL optimization method)
    2013-05-15 13:28:48下载
    积分:1
  • freemodbus-v1.5.0
    说明:  freemodbus-v1.5.0无改动官方源码,可移植(Freemodbus-v1.5.0 Portable without changing official source code)
    2020-06-18 00:00:01下载
    积分:1
  • printer
    ARM7嵌入式开发的热敏打印机程序,可以满足广大嵌入式语言爱好者的兴趣。(ARM7 embedded thermal printer developed procedures to meet the vast number of enthusiasts interested in the embedded language.)
    2008-01-11 20:17:26下载
    积分:1
  • 8940
    运动控制卡的详细开发资料,可以用来驱动步进电机(Motion control card developed detailed information can be used to drive stepper motor)
    2020-09-10 07:18:00下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载