Tool/software: TI C/C++ Compiler
Hi,
Is there any chance i can get access to ccs starup code __c_init00? The code b/w Reset vector and main().
Kind Regards,
Kowalski
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.
Tool/software: TI C/C++ Compiler
Hi,
Is there any chance i can get access to ccs starup code __c_init00? The code b/w Reset vector and main().
Kind Regards,
Kowalski
Older versions of the compiler supply the RTS source code in a zip file. Recent versions supply an ordinary directory of source files. Here is a typical location:
C:\ti\ccsv7\tools\compiler\ti-cgt-c6000_8.1.2\lib\src
Thanks and regards,
-George
The file boot.c has a function that starts with these lines ...
/*****************************************************************************/ /* C_INT00() - C ENVIRONMENT ENTRY POINT */ /*****************************************************************************/ extern void __interrupt c_int00()
Thanks and regards,
-George
kowalski said:1. where ever c_init00 is used, will be replaced by __c_init00. so where is this __c_init00 definition?
Because of ...
#define c_int00 _c_int00
... this function definition ...
/*****************************************************************************/ /* C_INT00() - C ENVIRONMENT ENTRY POINT */ /*****************************************************************************/ extern void __interrupt c_int00()
... expands to ...
/*****************************************************************************/ /* C_INT00() - C ENVIRONMENT ENTRY POINT */ /*****************************************************************************/ extern void __interrupt _c_int00()
The change is subtle. Note the '_' at the front of the function name.
kowalski said:How is this possible that a macro name is used as function name, will it not be a symbol conflict at linker?
No. When you link with the options --ram_model or --rom_model, the linker observes certain conventions for linking C and C++ code. Among these conventions is that the symbol for the program entry point is _c_int00.
Thanks and regards,
-George