Tool/software:
- Switch to user mode and set up the user mode stack.
- Set up status and configuration registers.
- Set up the stack.
- Process the special binit copy table, if present.
- Process the run-time initialization table to autoinitialize global variables (when using the --rom_model option).
- Call all global constructors.
- Call the function main.
- Call exit when main returns.
I hope to compile the entire rts with my program in CCS. I can use mklib.exe to build rtsv7M4_T_le_v4SPD16_xo_eabi.lib. When I copy all the files that generate rtsv7M4_T_le_v4SPD16_xo_eabi.lib and add them to the CCS project, and set up CCS according to the compilation and linking options in the Makefile, I find atomic.c(many founction are redefined) and debug.cpp have compiler errors. Therefore, I have two questions:
My CCS is CCS1210
the compiler flags:
-mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="D:/asmtest/tilibcworkspace/testlibc" --include_path="D:/asmtest/clib/src" --include_path="D:/asmtest/clib/src/AUTOSAR31" --include_path="D:/asmtest/clib/src/libcxx/include" --include_path="D:/asmtest/clib/src/libcxx/ext" --include_path="D:/asmtest/clib/src/libcxx/support" --include_path="D:/asmtest/clib/src/libcxx/support/runtime" --include_path="D:/asmtest/clib/src/libcxx/support/ti" --include_path="D:/asmtest/clib/src/machine" --include_path="D:/asmtest/clib/src/libcxx" --include_path="D:/asmtest/clib/src/sys" --include_path="D:/asmtest/clib/src/xlocale" --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --rtti --diag_warning=225 --diag_wrap=off --display_error_number --embedded_constants=off --abi=eabi
the linker flags:
-mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --rtti --diag_warning=225 --diag_wrap=off --display_error_number --embedded_constants=off --abi=eabi -z -m"testlibc.map" --heap_size=0 --stack_size=512 --diag_wrap=off --display_error_number --warn_sections --xml_link_info="testlibc_linkInfo.xml" --rom_model
Thanks a lot.