FAQ's
  • When compiling/linking is done on the IDEU8 GUI environment, the sorted data and functions on multiple const tables are no longer sorted.
    Is there a method to sort in the order of written source code?
    • There is a method to sort const tables, functions, and variables in the order of written source code.
      The following shows the method.

      [Sorting const tables in the order of source code]
      Use the Segconst pragma. By writing as shown below, const variables can be sorted in the order of written source code.

      #pragma Segconst "ConstTable" <- Write the Segconst pragma
      const unsigned char dotm03[] = {
      0x04,

      0x04,
      };
      //
      const unsigned char dotm04[] = {
      0x32,

      0x8c,
      };
      ...

      [Sorting functions in the order of source code]
      Use the Segcode pragma. By writing as shown below, functions can be sorted in the order of written source code.

      #pragma Segcode "Function" <- Write Segcode pragma
      void function1(void)
      {
      ...
      }
      void function2(void)
      {
      ...
      }

      [Sorting variables in the order of source code]
      Use the Seginit pragma for variables with initialization, and use the Segnoinit pragma for variables without initialization. By writing as shown below, variables can be sorted in the order of written source code.

      #pragma Segnoinit "Noinit_Var" <- Write Segnoinit pragma
      int var1;
      int var2;

      #pragma Seginit "Init_Var" <- Write Seginit pragma
      int var3 = 0x1234;
      int var4 = 0x5678;

      For details on pragma, refer to "5.16 SEGMENT Pragma" in "CCU8 User's Manual".

      Related Products: ML610(Q)40x, ML610(Q)42x, ML610(Q)47x, ML610(Q)48x, ML610Q10x, ML610Q11x, ML610Q17x, ML610Q30x, ML610Q35x, ML610Q36x, ML610Q38x, ML610Q41x, ML610Q43x, ML610Q46x, ML620Q13x, ML620Q15x, ML620Q416/ML620Q418, ML620Q503H/ML620Q504H/ML620Q506H, ML62Q12xx, ML62Q13xx, ML62Q14xx, ML62Q15xx/ML62Q18xx, ML62Q16xx, ML62Q17xx

    • Produkte: General-purpose MCUs (16bit) , Speech Playback MCUs (8bit)