Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11101

Inlining a function does not silence ULP diagnostic 10.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Low Low

      The attached source file has these lines ...

      static inline int ifxn()
      {
          return 25;
      }
      
      extern volatile int g;
      __interrupt void isr(void)
      {
         g = ifxn();
      }
      

      Build it with optimization level 0 ...

      % cl430 --advice:power -o0 -s file.c
      "file.c", line 9: remark: (ULP 10.1) ISR isr calls function ifxn. Recommend moving function call away from ISR, or inlining the function, or using pragmas
      

      Inspect the resulting file.asm to see that ifxn is inlined into isr. The advice in the diagnostic is being followed. Therefore, the diagnostic should not be issued.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: