Liste des Groupes | Revenir à cl c |
Lawrence D'Oliveiro <ldo@nz.invalid> writes:I vaguely seem to remember an embedded format that did something like this. The .init segement that was "copied" to the .data segement has a simple run-length encoding option. For non-repetitive data, it just encoded 1 copy of length n. But it could also encode repeats like your example. When EPROM was a scarce commodity squeezing out a bit of size for the .init segment was useful.On Sat, 03 Aug 2024 17:07:37 -0700, Keith Thompson wrote:Is that relevant to what I asked about?
>... general compression isn't something I've seen ...>
I recall Apple had a patent on some aspects of the “PEF” executable format
that they created for their PowerPC machines running old MacOS. This had
to do with some clever instruction encodings for loading stuff into
memory.
What I had in mind is something that, given this:
static int buf = { 1, 1, 1, ..., 1 }; // say, 1000 elements
would store something less than 1000*sizeof(int) bytes in the executable
file. I wouldn't be hard to do, but I'm not convinced it would be
worthwhile.
Les messages affichés proviennent d'usenet.