Patent ID: 8776049

Claim:
A method comprising steps of: providing a plurality of resource sets configured for use by a plurality of software layers in a software system with each resource set having an associated alignment requirement, wherein bits are appended to at least one of the resource sets to increase the overall size of the resource set to be equal to the associated alignment requirement of the resource set; sorting the resource sets in an order from a largest alignment requirement to a smallest alignment requirement by sorting entries in a table with each entry corresponding to an associated resource set; aligning the sorted resource sets with base addresses in a memory space in said order with each base address comprising a multiple of the alignment requirement of the associated resource set; subsequently retrieving a selected resource set from the memory space by multiplying an index value associated with the selected resource set by an overall size of the selected resource set to provide a product value, and by adding the product value to the base address of the resource set having the largest alignment requirement to identify the base address of the selected resource set; updating the table to add an entry corresponding to a new resource set; re-sorting the entries in the table to provide a new order for the resource sets from said largest alignment requirement to the smallest alignment requirement; and re-aligning the sorted resource sets in the memory space in the new order.