Dear Aneesh V, In message <4dd24e63.3020...@ti.com> you wrote: > > > But that's not what you are doing. You are not changing the storage > > of the global data itself, you are changing the storage of the POINTER > > TO the global data - and this makes no sense to me. The pointer can > > certainly remain in a register even if the data itself is somewhere > > else. > > Why do we want to waste a register in the entire SPL when global data > can be accessed directly from .data section?
Because the resulting code is smaller? I did not measure it on your hardware with your compiler, but IIRC this was the result on some other processors. 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: w...@denx.de It may be that your whole purpose in life is simply to serve as a warning to others. _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot