From: Wolfgang Denk Date: Sat, 11 Oct 2014 16:44:35 +0200 Subject: [U-Boot] Discussion topics / issues In-Reply-To: <5437E778.3050306@myspectrum.nl> References: <201410071445.50854.marex@denx.de> <20141008200948.GK25506@bill-the-cat> <54364960.5020607@monstr.eu> <201410091603.48309.marex@denx.de> <20141009221154.GA24774@amd> <20141009222446.D8D62380189@gemini.denx.de> <20141009230004.GA25685@amd> <20141010122229.B60DC38352B@gemini.denx.de> <5437E778.3050306@myspectrum.nl> Message-ID: <20141011144435.B53C2380CA2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jeroen, In message <5437E778.3050306@myspectrum.nl> you wrote: > > calling printf("%s\n", "string") gets translated into puts by the > compiler. There should be no difference in the binary. Interesting, I didn't know that. Is this somewhere documented? Is there any comprehensive list of such "magic" optimizations? Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Research is what I'm doing when I don't know what I'm doing. -- Wernher von Braun