From: Wolfgang Denk Date: Sun, 14 Nov 2010 21:42:23 +0100 Subject: [U-Boot] RFC: Aligning arch initialisation sequences In-Reply-To: <4CE04241.7070407@free.fr> References: <4CD67A22.9040802@gmail.com> <201011091835.38581.vapier@gentoo.org> <4CDE1107.80108@gmail.com> <4CDE4A53.4070106@free.fr> <4CDE741C.1020507@gmail.com> <4CDF6F2E.9040900@gmail.com> <4CDF7821.4080300@gmail.com> <4CDFA8E9.3050803@free.fr> <20101114103001.7EE2014EA7E@gemini.denx.de> <4CDFD1AE.1070409@free.fr> <20101114150102.DAAF914EA7E@gemini.denx.de> <4CE0221A.7030502@free.fr> <20101114190611.5E33F14EA7E@gemini.denx.de> <4CE0388E.2070601@free.fr> <20101114195506.B5B7A14EA7E@gemini.denx.de> <4CE04241.7070407@free.fr> Message-ID: <20101114204223.73D6114EA7E@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 Albert ARIBAUD, In message <4CE04241.7070407@free.fr> you wrote: > > > OK, this is not even 0.1% of the size, but anyway... > > If the difference in size is marginal, then I prefer the implementation > that has the least 'quirks' and most closely complies with EABI/AAPCS. Yes, I agree. On ARM the global pointermethod has both the advantage of being cleaner and giving slightly smaller code. > BTW your quick'n'dirty test puts GD at a fixed location identical for > code running before and after relocation, right? But do we not change > the stack location? Yes, we do. I just wanted to compile it for the code size difference; I did not attempt to make a perfect patch yet :-) 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 In an infinite universe all things are possible, including the possi- bility that the universe does not exist. - Terry Pratchett, _The Dark Side of the Sun_