How to print the enabled MACROS in my project? I am using C. RTOS eCos. Also i am using the makefile. In the makefile i wanted to print the all the defined MACROS.

You can use the c pre-processor to do this. The command

cpp -dM file.c

will list out all macros define in file.c (including built-in and included file macros).
This will not expand these macros, look at the man pages for cpp for details on how to do that.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.