Mapping range of addresses
Robert Dewar
dewar@adacore.com
Mon Sep 19 14:25:00 GMT 2005
shreyas krishnan wrote:
> Hi ,
> I am looking for an efficient data structure to map from a
> range of addresses to a single address. As it is used at runtime, I
> want it to be as efficient as possible, with perhaps updaing more
> important that retreiving. Are there any examples of such data
> structure ( and optimized code to use it) in gcc,binutils ?
>
> thanks
> Shrey
normally one would just use a binary search on a sorted table.
You can use a balanced tree to make updating reasonable.
More information about the Gcc
mailing list