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

User guide update clarify: Combining #pragma SET_DATA_SECTION and --gen_data_subsections=on will not put arrays into subsections

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: Medium Medium
    • Code Generation Tools
    • CODEGEN-12090
    • Hide
      C2000_20.12.0.STS
      C2000_20.2.2.LTS
      Show
      C2000_20.12.0.STS C2000_20.2.2.LTS
    • Hide
      MSP430_NEXT*
      C2000_NEXT*
      C7000_4.1.0.LTS
      Show
      MSP430_NEXT* C2000_NEXT* C7000_4.1.0.LTS
    • default
    • Duplicate of CODEGEN-8461

      The attached file has these lines ...

      #pragma SET_DATA_SECTION("RMS_Data")
      
      struct sss array1[3];
      struct sss array2[3];
      struct sss array3[3];
      

      Build it ...

      % cl2000 -s --gen_data_subsections=on try1.c
      

      Inspect the resulting assembly file ...

      % findstr usect try1.asm
      _array1:        .usect  "RMS_Data",1818,1,1
      _array2:        .usect  "RMS_Data",1818,1,1
      _array3:        .usect  "RMS_Data",1818,1,1
      

      These entries to create the arrays should have subsection names like "RMS_Data:_array1".

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

              Created:
              Updated:
              Resolved: