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

Combining #pragma SET_DATA_SECTION and --gen_data_subsections=on fails to put arrays into subsections

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Low Low

      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: