User-defined object memory segmentation and object element compression
AssigneeZoho Corporation Private Limited
InventorsSridhar Vembu, Akshhayaa S
Life of this patent
Estimating the term…
Loading patent…
AssigneeZoho Corporation Private Limited
InventorsSridhar Vembu, Akshhayaa S
Estimating the term…
Embodiments are disclosed for compiling source code to instantiate objects with identified elements, developer-identified or compiler-identified via code analysis, stored in a first memory location independently from the remainder stored in a second location. Frequently used elements stored separately increase likelihood of remaining in cache. Identified elements may be packed together in one or more machine words and optionally shortened, compressed, truncated or otherwise transformed. Developer-supplied modifications to an identifier construct direct the compiler how an identified element is to be stored such as number or range of bits, size, location. When unspecified, the compiler may determine various parameters, resolve any conflicts, and otherwise optimize packing. The compiler auto-generates instructions to instantiate the objects, as segregated, in memory at runtime and to access identified or remainder elements appropriately in response to a request. In each embodiment, object memory segmentation and compression is performed at runtime automatically and accurately without programmer intervention other than guidance provided via identifier constructs.
A non-transitory computer-readable medium having stored thereon a source code compilable by a compiler and executable by a processor coupled with a memory, the source code comprising:
A method, operable with source code comprising a type definition defining a type comprising a plurality of elements, the method comprising:
A system comprising:
Dependencies are inferred from the claim text.