This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Preprocessor greyedout

At the moment I'm evaluating the Keil5 ide.
In Coocox the compiler will gray out the unused preprocessor code, is very handy.
Can't find this option in Keil uvision 5, how do you guys do that?
How can you read (and understand) the code if you don't know what's used or not.

Example: my.st.com/.../gray.PNG

Parents
  • Usually I just have the compiler generate browse information, and look at the areas where I can vs can't set break-points, it's pretty apparent then if code doesn't make it into the executable due to preprocessor or dead-code elimination.

    Use a better editor or static-analysis tool, not sure any vendor yet has built an editor that appeals to everyone, and there are hooks to let you use your own.

Reply
  • Usually I just have the compiler generate browse information, and look at the areas where I can vs can't set break-points, it's pretty apparent then if code doesn't make it into the executable due to preprocessor or dead-code elimination.

    Use a better editor or static-analysis tool, not sure any vendor yet has built an editor that appeals to everyone, and there are hooks to let you use your own.

Children