This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

One file takes forever to compile CGT 7.2.6

Hi

I tried the --no_compress option mentioned below and there is no difference in the compile time for one of our files that takes about 90 seconds to compile.

http://e2e.ti.com/support/development_tools/compiler/f/343/t/129183.aspx

The file is not optimized, there are 5 functions, the longest function is 40 lines and they are simple case statements, ifs and for loops.

Our highly complex algorithmic files take 30 seconds to compile with optimization turned on.

Any other ideas to debug compile time?

Cheers

  • Well, this doesn't make a lot of sense.  I'd appreciate if you would submit a test case as described near the end of the forum welcome message.

    Thanks and regards,

    -George

  • I was afraid you'd ask for it. I'll see what I can drum up.

    Cheers

  • Hi

    I traced the problem down to the declaration of an array

    #define NUM_CINE_MEM_SECTION        2

    #pragma DATA_SECTION(gHeapMemMgr_CineFovHeap, ".sect_cine_data")
    Uint8 gHeapMemMgr_CineFovHeap [ NUM_CINE_MEM_SECTION ][ CFG_HEAPCINE_SIZE ] = {NULL};

    where the defines come from the .cfg file:

    Program.global.CFG_HEAPCINE_SIZE  = 0x03FFFFFF;

    If I remove the "= {NULL}", the program compiles in seconds.

    I guess we should use a memset instead of cinit eh?

    Cheers

     

  • Thank you for the test case.  I am able to reproduce this issue.  I filed SDSCM00042445 in the SDOWP system.  Feel free to track it with the SDOWP link in my sig below.

    Thanks and regards,

    -George