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.

TDA4VM: why while(1){;} is compiled as an empty function by the compiler

Part Number: TDA4VM


Tool/software:

1.the compiler is ti-cgt-arm_20.2.5.LTS

2.why the code below doesn't work, while(1){;} is compiled as an empty function by the compiler?

          static void loopTest(void)
          {
                while(1)
                {
                    ;
                }
          }