Re: Problem using .zerofill / -segaddr to create very large segments
Re: Problem using .zerofill / -segaddr to create very large segments
- Subject: Re: Problem using .zerofill / -segaddr to create very large segments
- From: Jay Reynolds Freeman <email@hidden>
- Date: Tue, 22 Sep 2009 17:50:55 -0700
On Sep 22, 2009, at 5:42 PM, Greg Parker wrote:
You are thinking relocatable binary files, I believe. Think "linked
lists" and "structs with pointers to other structs", instead -- that
is
what is in this big memory-mapped block.
> The traditional way to pic-ify such data structures is to store
> relative offsets instead of absolute pointers.
Notable performance hit and serious addition of complexity:
Replace *foo by *(something->getBaseAddress() + fooOffset)
in about a zillion places.
> The linker and loader are not typically called upon to handle
> hundreds of gigabytes of data.
Welcome to the wonderful world of 64-bit applications! :-)
More later ...
-- Jay Reynolds Freeman
---------------------
email@hidden
http://web.mac.com/jay_reynolds_freeman (personal web site)
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden