Hi TIers:
Porting1.2 to1.32,set Number of virtual registers to 16。
virtual registers是什么,为什么要设置为16呢?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
<EW8051_CompilerReference.pdf>
The compiler uses a set of virtual registers—located in data memory—to be used like any other registers. A minimum of 8 virtual registers are required by the compiler, but as many as 32 can be used. A larger set of virtual registers makes it possible for the compiler to allocate more variables into registers. However, a larger set of virtual registers also requires a larger data memory area. In the Large data model you should probably use a larger number of virtual registers, for example 32, to help the compiler generate better code.