Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

why are absolute addresses better?
The source of lzma / 7zip contains filters that transform relative
addresses in CALL-statements to absolute addresses. It is claimed
that this gives better compression. I was able to verify this
experimentally for ARM binaries, even for delta-compression.

Could sombody explain WHY absolute addresses are better? (Intuitively I
would have expected the opposite).

Regards,

-ulrich

[nosave]
----------------------------------------------------------------------------
Ulrich Lauther          ph: +49 89 636 48834 fx: ... 636 42284
Siemens CT SE 6         Internet: Ulrich.Lauther@siemens.com

Report this thread to moderator Post Follow-up to this message
Old Post
Ulrich Lauther
05-29-05 08:55 AM


Re: why are absolute addresses better?
Ulrich wrote:
) The source of lzma / 7zip contains filters that transform relative
) addresses in CALL-statements to absolute addresses. It is claimed
) that this gives better compression. I was able to verify this
) experimentally for ARM binaries, even for delta-compression.
)
) Could sombody explain WHY absolute addresses are better? (Intuitively I
) would have expected the opposite).

Why would you expect relative addresses to compress better ?  With absolute
addresses, one would expect a lot of them to be the same, and therefore
compress better.


SaSW, Willem
--
Disclaimer: I am in no way responsible for any of the statements
made in the above text. For all I know I might be
drugged or something..
No I'm not paranoid. You all think I'm paranoid, don't you !
#EOT

Report this thread to moderator Post Follow-up to this message
Old Post
Willem
05-29-05 08:55 AM


Re: why are absolute addresses better?
Willem <willem@stack.nl> wrote:
: Ulrich wrote:
: ) The source of lzma / 7zip contains filters that transform relative
: ) addresses in CALL-statements to absolute addresses. It is claimed
: ) that this gives better compression. I was able to verify this
: ) experimentally for ARM binaries, even for delta-compression.
: )
: ) Could sombody explain WHY absolute addresses are better? (Intuitively I
: ) would have expected the opposite).

: Why would you expect relative addresses to compress better ?  With absolut
e
: addresses, one would expect a lot of them to be the same, and therefore
: compress better.

In "normal" compression, because I would expect small values, i.e. many
leading zeros in addresses; in delta compression, because a relative
address may be invariant when pieces of codes are moved around.

However, your reasoning makes a lot of sense.

-ulrich
[nosave]
----------------------------------------------------------------------------
Ulrich Lauther          ph: +49 89 636 48834 fx: ... 636 42284
Siemens CT SE 6         Internet: Ulrich.Lauther@siemens.com

Report this thread to moderator Post Follow-up to this message
Old Post
Ulrich Lauther
05-29-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

Compression archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:37 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.