> If possible, we *want* the preprocessor to remove any code that does
> not apply for a specific configuration. Generating code just bloats
> the memory footprint.

Definitely. 

But constant expressions are evaluated at compile time. So the dead
branch (if or else) doesn't generate any object code. There is no
memory footprint overhead.

When possible, I prefer to use C conditionals rather than preprocessor
conditionals. I raised the point because I see u-boot wants to get rid
of preprocessor mess when it brings no cost.

/alessandro

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

Reply via email to