From: Wolfgang Denk Date: Tue, 17 Sep 2013 12:19:32 +0200 Subject: [U-Boot] [PATCH] arm: prevent using movt/movw address loads In-Reply-To: References: Message-ID: <20130917101932.32D8438043B@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 TigerLiu at viatech.com.cn, In message you wrote: > > >May I ask why you want to use other optimization levels? Do you just > >hope that your code may run faster, or do you have actual proof (i. e. > >measurements) that this is the case? It would be interesting if you > >could share any such measured results. > > Not for running faster. > I just think: > If turn off compiler optimization, some bugs would be analysed easily. Hm... that does not match my experience. A pretty large percentage of actual bugs is of Heisenbug nature. Changin the buil environment will create a completely different image with different behaviour - you may be lucky, but too often the changes actually side-track you from the actual issues. 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 Pig: An animal (Porcus omnivorous) closely allied to the human race by the splendor and vivacity of its appetite, which, however, is in- ferior in scope, for it balks at pig. - Ambrose Bierce