通过设置TMC428内部参数寄存器和片内ram的值,可使TMC428能够同时控制三个步进电机,实现三轴控制系统。
To set the proper parameter of register and on-chip ram of TMC428, it can make TMC428 control three stepper motor in the same time, and realize three-axis control system.
这个空间也用来在溢出情况中使用:如果参数个数多于可用寄存器的数目,那么它们就需要进入堆栈空间中。
This space is also used for overflow: if there are more parameters than registers available for use, then they need to go in the stack space.
在本例中,第一个也是惟一一个参数已经加载进寄存器3。
In this case, the first and only parameter is already loaded into register 3.
专用寄存器覆盖绑定选项和数据库管理器配置参数。
The special register overrides the bind option and the database manager configuration parameter.
在基于寄存器的系统上还有一个问题:系统采用寄存器而不是堆栈来向函数传递参数。
There is another problem on register-based systems where registers are used to pass parameters to functions rather than the stack. Consider the following example.
尽管寄存器可以存储多个值(在本例中,4个32位值),但当参数传递给函数时,每个参数值都会在其自己的寄存器内被传递。
Although registers can hold multiple values (in this case, four 32-bit values), when passing parameters to a function, each parameter value is passed in its own register.
某些情况下,如果语句包含主机变量、参数标记或特殊寄存器那么访问路径在运行时的性能不会很好。
In some cases, the access path does not perform well at runtime if the statement contains host variables, parameter markers, or special registers.
但是,与ppe不同,这只用在参数的数量大于参数可用的寄存器数量的情况下(这种场景并不常见)。
However, unlike the PPE, this is only used if the number of parameters is greater than the number of registers available for parameters (not a very likely scenario).
寄存器3应该保存第一个参数,寄存器4应该保存第二个参数,以此类推。
Register 3 should hold the first parameter, register 4 should hold the second one, and so on.
然而,在需要保存值的情况下,依然需要为参数预留空间;尤其在需要使用易失性寄存器传递参数时更是如此。
However, space must still be reserved for parameters in case the values need to be saved, especially since the parameters are passed using volatile registers.
现在,正如您之前看到的一样,函数调用实际上是通过寄存器来传递参数的。
Now, as you saw earlier, function calls actually pass their parameters through registers.
寄存器3里面保存了第一个定点参数,寄存器4中保存的是第二个参数,依此类推,直到寄存器10。
Register 3 has the first fixed-point parameter, register 4 has the second, and so on through register 10.
函数必须假设对于自己的前8个参数,它们只会通过寄存器传递,但是如果需要在程序中对参数进行存储,就仍然需要一个可用的保存区。
Functions must assume that for the first eight parameters, they are only passed by register, but they will still have a save area available if they need to be stored by the program.
在使用PowerPCabi语义调用一个函数时,它会使用寄存器将自己的参数传递给函数。
When a function is called using the PowerPC ABI semantics, it passes the parameters to the function in registers.
这样做也能够更好地利用可用寄存器、减少在堆栈和寄存器间移动参数所需要的周期,并减少对RAM的使用。
This results in better utilization of the available registers, fewer cycles wasted moving parameters between the stacks and the registers, and less ram usage.
假如你把原始的值入栈,你将能够通过寄存器%ebp引用对应存储的参数,甚至你仍能继续使用(增加值到堆栈)堆栈。
If you save the original value of the stack, you can refer to the stored arguments via the EBP register, while you can still use (add values to) the stack.
这个寄存器变量声明不仅仅可以用在自动变量上,也能用在函数的参数上。
The register variable declaration can only be appied to automatic variables, and to the formal parameters of a functions.
被调用方负责根据需要将寄存器参数转储到它们的阴影空间中。
The callee has the responsibility of dumping the register parameters into their shadow space if needed.
应用程序的根包含全局对象指针、静态对象指针、线程堆栈中的局部变量和引用对象参数以及CPU寄存器。
An application's roots include global and static object Pointers, local variables and reference object parameters on a thread's stack, and CPU registers.
传统的C8051编译器保留7个特殊寄存器来存储调用函数所需的参数。
Conventional C8051 compilers reserve up to seven specific registers to store parameters for called functions.
因此,参数可能存储在寄存器和/或在堆栈上,和一个返回值也保留。
So the parameters may be stored in registers and/or on the stack, and a place for the return value is also reserved.
一般来说,传递的参数你没有垃圾值从堆栈寄存器或阅读,不写之前调用。
Generally, the parameters you have not passed are garbage values read from the registers or the stack, which were not written to prior to the call.
当协议栈需要获取数值是,它通过调用回调函数来实现,该回调函数以寄存器地址和数量作为参数。
Whenever the protocol stack requires a value it calls one of the callback function with the register address and the number of registers to read as an argument.
前四个整型参数将被传入寄存器中。
The first four integer arguments will be passed in registers.
在寄存器中,所有参数都是右对齐的。
家族代码显示在SAP(伺服适配参数)控制编辑寄存器而编辑在RAM(随机存储)和ROM(只读存储)。
Family code is displayed in SAP Control Flags editor while editing in RAM and ROM.
家族代码显示在SAP(伺服适配参数)控制编辑寄存器而编辑在RAM(随机存储)和ROM(只读存储)。
Family code is displayed in SAP Control Flags editor while editing in RAM and ROM.
应用推荐