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

Add support for _symval built-in function to tiarmclang

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Medium Medium

      The attached test case has this line ...

          f2(_symval(&linker_symbol));
      

      The built-in function _symval is documented.

      Build it ...

      % tiarmclang -S file.c
      file.c:9:8: warning: implicit declaration of function '_symval' is invalid in C99 [-Wimplicit-function-declaration]
          f2(_symval(&linker_symbol));
             ^
      1 warning generated.
      

      Inspect the generated assembly to see that a function named _symval is called.

      % findstr _symval file.s
              bl      _symval
              .addrsig_sym _symval
      

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

              Created:
              Updated: