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.

Avoid the use of registers in the CCS4



Dear, 

    I debugged with used the LM4F232H5QD Evaluation Board

     I created a subroutine. It into the five parameters.

     Compiler to specify the use of registers, but there is also assigned the same register.

     Operation, the register of the resulting parameters are changed.

     Is there any way to avoid the use of registers to the compiler??

 

  • There is no way to force the compiler to avoid using registers.

    You can make the compiler keep local variables on the stack more frequently by using the "-g" option to turn on source-level debugging, but some local variables will still be kept in registers.

    Can you provide a test case which demonstrates your problem?