Discussion:
Snes9x (PowerUP) kicks Warpsnes ass! (NOT)
(too old to reply)
Betsy Hendricks
2022-02-03 14:12:38 UTC
Permalink
: : What makes ELF files bigger is relocation data. The hunk format
: : has a more compact (but less powerful) way to store them.
: Oops, I forgot that one. But relocation data can't be that big, can it?
Relocation data with ELF is 12 bytes per relocation, and on ppc
they are often used by pair (2 relocations per access to a
global variable). Hunk format uses 4 bytes per relocation,
and since it doesn't support split-relocations, they are
not much used for ppc. Programs using hunk format use relative
addressing and a table of contents instead, which is slower but
leads to smaller files. The actual size of the code loaded
in memory is more or less the same in both cases.
--
hm?
Pinku Basudei
2022-03-17 13:54:47 UTC
Permalink
On Thu, 3 Feb 2022 06:12:38 -0800 (PST)
: : What makes ELF files bigger is relocation data. The hunk format
: : has a more compact (but less powerful) way to store them.
: Oops, I forgot that one. But relocation data can't be that big, can it?
Relocation data with ELF is 12 bytes per relocation, and on ppc
they are often used by pair (2 relocations per access to a
global variable). Hunk format uses 4 bytes per relocation,
and since it doesn't support split-relocations, they are
not much used for ppc. Programs using hunk format use relative
addressing and a table of contents instead, which is slower but
leads to smaller files. The actual size of the code loaded
in memory is more or less the same in both cases.
--
hm?
*Sigh* If people only would realize that replying to messages that are 23 years old isn't particulary usefull. In this case it also lacks substance.
--
/ Pinku
Loading...