
14 Nov
2010
14 Nov
'10
9:10 p.m.
Le 14/11/2010 20:55, Wolfgang Denk a écrit :
Actually situation might be differenton ARM. I just did quick and ditry test for the TX25 board:
[...]
The global pointer method saves a total of 152 bytes here (156 in .text saved, but 4 in .data needed).
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.
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?
Best regards,
Wolfgang Denk
Amicalement,
--
Albert.