Part Number: MSP430F5438A
Tool/software: TI C/C++ Compiler
Hi Team,
is there a way to maintain the order of variable declartion in out file?
for e.g. i have following variables
Uint32 crc;
Uint8 version[9];
Bool flag1;
Bool flag2;
Bool flag3;
Int32 var1[2];
Int32 var2;
Uint32 var3;
After compiling, when i see the order of memory allocation, they appear to be randomly allocated. I need them to be sequentially allocated. How can i achieve that.
Following are the compiler flag that i have in my project:
source/SCDF/%.obj: ../source/SCDF/%.c $(GEN_OPTS) | $(GEN_FILES) $(GEN_MISC_FILES)
@echo 'Building file: "$<"'
@echo 'Invoking: MSP430 Compiler'
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-msp430_18.12.3.LTS/bin/cl430" -vmspx --data_model=large -Ooff --opt_for_speed=4 --use_hw_mpy=none --include_path="C:/MyFolder/Project/source/types" --include_path="C:/MyFolder/Project/source/SCDF" --include_path="C:/MyFolder/Project" --advice:power="all" --define=PBA_V1 --define=__MSP430F5438A__ --undefine=EVB -g --c89 --float_operations_allowed=none --printf_support=minimal --diag_warning=225 --diag_wrap=off --display_error_number --gen_data_subsections=on --enum_type=packed --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --auto_inline=0 -k --asm_listing --preproc_with_compile --preproc_dependency="source/SCDF/$(basename $(<F)).d_raw" --obj_directory="source/SCDF" $(GEN_OPTS__FLAG) "$<"
@echo 'Finished building: "$<"'
@echo ' '
thanks,
Ashish