Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Macro expansion in the compiler

eldienerMar 23 2015 — edited Mar 27 2015

Is their any C++ compiler option for Solaris Studio which will show me each step in the expansion of a macro when I compile a program ?

I know about the compiler option which gives me the source after preprocessing. But that just shows the source from any macro after macro expansion has completely occurred. I need to see each step of the expansion of a macro as the preprocessor is expanding it.

Both gcc and clang have such a macro expansion compiler option so I am hoping that Solaris Studio C++ also has one.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 24 2015
Added on Mar 23 2015
4 comments
1,804 views