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.

Compiler: GCC's -E -dm and -E -M analogs for cl2000 compiler

Tool/software: TI C/C++ Compiler

Hello,

what are the analogs for the following functionality of the GCC compiler:

1) Find out a set of standard-defined precompiler switches for c2000:

gcc.gnu.org/.../Preprocessor-Options.html

with GCC i can do:

touch empty.h; gcc -E -dM empty.h

giving me 

#define __DBL_MIN_EXP__ (-1021)
#define __UINT_LEAST16_MAX__ 0xffff
#define __ATOMIC_ACQUIRE 2
#define __FLT_MIN__ 1.17549435082228750797e-38F
#define __GCC_IEC_559_COMPLEX 2
#define __UINT_LEAST8_TYPE__ unsigned char
#define __SIZEOF_FLOAT80__ 16
#define _WIN32 1
..

2) Find a set of header dependencies for a file for c2000:

https://gcc.gnu.org/onlinedocs/gcc/Preprocessor-Options.html#index-M

With GCC i can do:

echo "#include <stdio.h>" > header.h; gcc -E -M header.h

Giving me

header.o: header.h \
 C:/Program\ Files/mingw-w64/x86_64-6.3.0-posix-seh-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/stdio.h \
 C:/Program\ Files/mingw-w64/x86_64-6.3.0-posix-seh-rt_v5-rev1/mingw64/x86_64-w64-mingw32/include/crtdefs.h \
...

  • The C2000 compiler has options which solve the same problem.  However, they are not exact replacements.  Please get all the details on these options from the C2000 compiler manual.

    user5837195 said:
    1) Find out a set of standard-defined precompiler switches for c2000:

    Use --preproc_macros.

    user5837195 said:
    2) Find a set of header dependencies for a file for c2000:

    Use --preproc_dependency.

    Thanks and regards,

    -George