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.

Preprocessor output with macro expansion etc with 'includ'ed file data (etc.)

Other Parts Discussed in Thread: MSP430F5342

Pertinent information:

'Building file: ../source/init.c'
'Invoking: MSP430 Compiler'
"C:/TI/ccsv5/tools/compiler/msp430_4.2.4/bin/cl430" -vmspx --abi=eabi --code_model=large --data_model=large -O1 --opt_for_speed=0 -g --include_path="H:/CSE_tag/firmware/tag_pa1/include" --include_path="C:/TI/ccsv5/ccs_base/msp430/include" --include_path="C:/TI/ccsv5/tools/compiler/msp430_4.2.4/include" --advice:power="all" --float_operations_allowed=all --gen_acp_raw --preproc_only --define=__MSP430F5342__ --define=SIZE_OUTFRAME_Q=2 --define="THIS_DEVICE_ADDRESS={ 0xC0, 0xA8, 0x00, 0x0F }" --define=SIZE_INFRAME_Q=2 --define=NUM_CONNECTIONS=2 --define=MAX_HOPS=0 --define=END_DEVICE=1 --define=MAX_APP_PAYLOAD=25 --define=MAX_HOPS_FROM_AP=1 --define=MAX_NWK_PAYLOAD=9 --define=DEFAULT_JOIN_TOKEN=0xC0A8FFFF --define=DEFAULT_LINK_TOKEN=0x87654321 --define=SERIAL_PORT --define=EXTENDED_API=1 --diag_warning=225 --display_error_number --diag_wrap=off --silicon_errata=CPU21 --silicon_errata=CPU22 --silicon_errata=CPU23 --silicon_errata=CPU40 --fp_reassoc=on --printf_support=full --c_src_interlist --asm_listing --output_all_syms --obj_directory="source"  "../source/init.c"'

I am trying to resolve user defined macro's and expansion issues in some code, yet I cannot seem to find a way to output the expanded macro information along with header data. I've tried -ppo (output preprocessor only) -ppm (something about user defined macros).

I get a few files .pp - just has the included file list .rl - just contains the code with a symbol prepend-ed on each line. What file contains the expanded macro definitions and or errors?

Is their a separate preprocessor I can call just to get the output?

Ideas and suggestions welcome!

Stephen

  • Fortunately I'm not quoting myself here.

    The RL file appears to contain some expanded data. The first column indicates 'things' (magic symbols?)

    N (not sure what this means) appears to be something 'used'

    S (Skipped) something NOT used

    X (eXpanded) this shows something expanded

    L (Link?) used with included files often with a number of the line the linked file was mentioned from along with a path.

    Anyhow it appears it does expand etc. just a bit confusing, I'm not sure it was meant to be human readable.


    I kind of answered my question and solved the (my particular) issue I was having. This is here in case someone else gets confused by the first column of symbols in .RL files.

    Stephen

  • You are using the output of the --gen_acp_raw option.  That option, and its output, is discussed in the MSP430 compiler manual.

    Thanks and regards,

    -George