From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alessandro Rubini Date: Mon, 19 May 2008 23:04:09 +0200 Subject: [U-Boot-Users] [PATCH] mips: tolerate the MIPS 'CFG_HZ' values in the MHZ range for NAND delays In-Reply-To: <20080519205330.74A7B2476E@gemini.denx.de> References: <20080519205330.74A7B2476E@gemini.denx.de> Message-ID: <20080519210409.GA3803@mail.gnudd.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > 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