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.

deallocating _c_int00



Is it possible to allocate _c_int00 and all other assembler functions run before main() to a different location from where .text is located?

Say I want _c_int00 to run from FLASHA, but all the rest in .text from FLASHB.

 

Thanks in advance

 

  • I believe _c_int00 is defined in the run-time support (rts) library so you can allocate the rts lib to FLASHA and the rest of your code in FLASHB.

    Something like:


       .textrts            : > FLASHA,     PAGE = 0
       {
            <rts library name with full path>
       }

       .text               : > FLASHB,     PAGE = 0

    Thanks

    ki

  • According to boot28.inc _c_int00 is in .text

     

    ****************************************************************************
    *  INITIALIZE RESET VECTOR TO POINT AT _c_int00                            *
    ****************************************************************************
     .sect .reset
     .long _c_int00

     .text
    ****************************************************************************
    * FUNCTION DEF : _c_int00                                                  *
    *                                                                          *
    ****************************************************************************

    _c_int00: .asmfunc

     

     

  • Michal Koziel said:
    According to boot28.inc _c_int00 is in .text

    It will default to .text if you do not specify otherwise.