Fully document .=/.+= align operator in the compiler user guide

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: Low
    • Code Generation Tools
    • CODEGEN-16439
    • default

      The c29clang/tiarmclang compiler manual uses the align() operator is used in a number of examples when filling holes or as part of linker command file documentation, but the option is not fully documented in the user guide. 

      When this operator is used, the linker will fill a hole to the next absolute aligned address within the output section. Using the example below the linker will create a hole to align the file2.c.o to the next available 16 byte address padding below file1.c.o

      SECTIONS
      {
          outsect:
          {
              file1.c.o(.text)
              . += align(16);   /* Create a hole to align with the next 16 byte aligned address */
              file2.c.o(.text)
          }
      }

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

              Created:
              Updated:

                Connection: Intermediate to External PROD System
                EXTSYNC-7197 - Fully document .=/.+= align operato...
                SYNCHRONIZED
                • Last Sync Date: