Re: Problem using .zerofill / -segaddr to create very large segments
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com On Sep 22, 2009, at 5:42 PM, Greg Parker wrote:
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
Jay_Reynolds_Freeman@mac.com 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 (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... 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. This email sent to site_archiver@lists.apple.com
participants (1)
-
Jay Reynolds Freeman