Other Parts Discussed in Thread: TM4C129ENCPDT
I am building my project with code composer Version: 6.1.0.00104. I have the project set up to build with the TI v5.2.4 compiler, and with the GNU v4.8.4 (Linaro) compilers. In this project I am using the TM4C129ENCPDT micro. With the TI compiler I am getting a code size of 36772 bytes of flash, and 69118 bytes of RAM. When I build with the GCC compiler I end up using 61860 bytes of flash and 70780 bytes of RAM.
Here is the TI Compiler flags:
-mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -Ooff --opt_for_speed=2 --include_path="C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.4/include" --include_path="C:/ti/TivaWare_C_Series-2.1.0.12573/third_party/" --include_path="C:/Workspace/Project/include" --include_path="C:/Workspace/Project/" --include_path="C:/ti/TivaWare_C_Series-2.1.0.12573" -g --gcc --define=DEBUG_ON --define=ccs="ccs" --define=PART_TM4C129ENCPDT --define=TARGET_IS_SNOWFLAKE_RA0 --display_error_number --diag_warning=225 --gen_func_subsections=on --printf_support=full -k --c_src_interlist --output_all_syms --ual --verbose
TI Linker flags:
-mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -Ooff --opt_for_speed=2 -g --gcc --define=DEBUG_ON --define=ccs="ccs" --define=PART_TM4C129ENCPDT --define=TARGET_IS_SNOWFLAKE_RA0 --display_error_number --diag_warning=225 --gen_func_subsections=on --printf_support=full -k --c_src_interlist --output_all_syms --ual -z -m"myMemoryMap.txt" --heap_size=2048 --stack_size=8192 -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.4/lib" -i"C:/ti/ccsv6/tools/compiler/ti-cgt-arm_5.2.4/include" --reread_libs --warn_sections --display_error_number --issue_remarks --xml_link_info="linkInfo.xml" --generate_dead_funcs_list=dead_funcs.txt --rom_model
and the GCC compiler flags:
-mcpu=cortex-m4 -march=armv7e-m -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fno-exceptions -DGCC -DPART_TM4C129ENCPDT -DDEBUG_ON -Dccs="ccs" -DTARGET_IS_SNOWFLAKE_RA0 -I"C:/ti/ccsv6/tools/compiler/gcc-arm-none-eabi-4_8-2014q3/arm-none-eabi/include" -I"C:/ti/TivaWare_C_Series-2.1.0.12573" -I"C:/ti/TivaWare_C_Series-2.1.0.12573/third_party/" -I"C:/Workspace/Project/include" -I"C:/Workspace/Project" -ffunction-sections -fdata-sections -g -gstrict-dwarf -Wall -MD -pedantic -c -std=c99 -v
GCC Linker flags:
-march=armv7e-m -mthumb -mfloat-abi=softfp -mfpu=fpv4-sp-d16 -fno-exceptions -DGCC -DPART_TM4C129ENCPDT -DDEBUG_ON -Dccs="ccs" -DTARGET_IS_SNOWFLAKE_RA0 -ffunction-sections -fdata-sections -g -gstrict-dwarf -Wall -Wl,-Map,"Project.map" -static -Wl,--gc-sections -L"C:/ti/TivaWare_C_Series-2.1.0.12573/driverlib/gcc" -L"C:/ti/TivaWare_C_Series-2.1.0.12573/driverlib"
I am trying to understand why there is such a large difference in the flash sizes between the two compilers. Any help would be appreciated! Thanks in advance!