Runtime struct fields size reduction
US-2019042220-A1 · Feb 7, 2019 · US
US10678524B2 · US · B2
| Field | Value |
|---|---|
| Publication number | US-10678524-B2 |
| Application number | US-201815922059-A |
| Country | US |
| Kind code | B2 |
| Filing date | Mar 15, 2018 |
| Priority date | Mar 15, 2018 |
| Publication date | Jun 9, 2020 |
| Grant date | Jun 9, 2020 |
A practical reading order for non-experts. Skip the full description unless you need deep technical detail.
What the patent document calls the invention.
A short plain-language summary of the technical disclosure.
Who owns or filed the patent and who is credited as inventor.
Filing, priority, publication, and grant dates set the timeline.
The legal scope of protection — read this for what is actually claimed.
Technology tags used to group this patent with similar filings.
Prior art links and similar publications in this corpus.
Official abstract text for this publication.
An embodiment of a semiconductor package apparatus may include technology to identify a field of a data structure as a candidate for a size reduction, perform a runtime analysis on the field, and reduce the size of the field based on the runtime analysis. Other embodiments are disclosed and claimed.
Opening claim text (preview).
We claim: 1. An electronic processing system, comprising: a processor; memory communicatively coupled to the processor; and logic communicatively coupled to the processor to: identify a field of a data structure as a candidate for a size reduction, perform a runtime analysis on the field to determine a minimum value assigned to the field and a maximum value assigned to the field, determine whether the minimum value and the maximum value are fittable into a reduced size field, and based on the runtime analysis and in response to the minimum value and the maximum value being determined to be fittable into the reduced size field, reduce a size of the field to the reduced size field and clone or more functions to execute based on new offsets associated with the reduced size field. 2. The system of claim 1 , wherein the logic is further to: perform a runtime range analysis on one or more values assigned to the field. 3. The system of claim 2 , wherein the logic is further to: copy the field of the data structure to the reduced size field; and set a flag to indicate that the size of the field of the data structure was reduced. 4. The system of claim 1 , wherein the logic is further to: create a clone function with a reduced size data structure for a function with an identified candidate for the size reduction. 5. The system of claim 1 , wherein the field of the data structure comprises a struct field. 6. The system of claim 1 , wherein the logic is further to: in response to the minimum value and the maximum value being determined to not be fittable into the reduced size field, set a flag to a first value and clone one or more original functions to generate one or more cloned functions that are to include a call to the one or more original functions; and in response to the minimum value and the maximum value being determined to be fittable into the reduced size field, set the flag to a second value, wherein the second value is different from the first value. 7. A semiconductor package apparatus, comprising: one or more substrates; and logic coupled to the one or more substrates, wherein the logic is at least partly implemented in one or more of configurable logic or fixed-functionality logic hardware, the logic coupled to the one or more substrates to: identify a field of a data structure as a candidate for a size reduction, perform a runtime analysis on the field to determine a minimum value assigned to the field and a maximum value assigned to the field, determine whether the minimum value and the maximum value are fittable into a reduced size field, and based on the runtime analysis and in response to the minimum value and the maximum value being determined to be fittable into the reduced size field, reduce a size of the field to the reduced size field and clone or more functions to execute based on new offsets associated with the reduced size field. 8. The apparatus of claim 7 , wherein the logic is further to: perform a runtime range analysis on one or more values assigned to the field. 9. The apparatus of claim 8 , wherein the logic is further to: copy the field of the data structure to the reduced size field; and set a flag to indicate that the size of the field of the data structure was reduced. 10. The apparatus of claim 7 , wherein the logic is further to: create a clone function with a reduced size data structure for a function with an identified candidate for the size reduction. 11. The apparatus of claim 7 , wherein the field of the data structure comprises a struct field. 12. The apparatus of claim 7 , wherein the logic coupled to the one or more substrates includes transistor channel regions that are positioned within the one or more substrates. 13. The apparatus of claim 7 , wherein the logic is further to: in response to the minimum value and the maximum value being determined to not be fittable into the reduced size field, set a flag to a first value and clone one or more original functions to generate one or more cloned functions that are to include a call to the one or more original functions; and in response to the minimum value and the maximum value being determined to be fittable into the reduced size field, set the flag to a second value, wherein the second value is different from the first value. 14. A method of compiling, comprising: identifying a field of a data structure as a candidate for a size reduction; performing a runtime analysis on the field to determine a minimum value assigned to the field and a maximum value assigned to the field; determining whether the minimum value and the maximum value are fittable into a reduced size field; and based on the runtime analysis and in response to the minimum value and the maximum value being determined to be fittable into the reduced size field, reducing a size of the field to the reduced size field and cloning or more functions to execute based on new offsets associated with the reduced size field. 15. The method of claim 14 , further comprising: performing a runtime range analysis on one or more values assigned to the field. 16. The method of claim 15 , further comprising: copying the field of the data structure to the reduced size field; and setting a flag to indicate that the size of the field of the data structure was reduced. 17. The method of claim 14 , further comprising: creating a clone function with a reduced size data structure for a function with an identified candidate for the size reduction. 18. The method of claim 14 , wherein the field of the data structure comprises a struct field. 19. The method of claim 14 , further comprising: in response to the minimum value and the maximum value being determined to not be fittable into the reduced size field, setting a flag to a first value and cloning one or more original functions to generate one or more cloned functions that are to include a call to the one or more original functions; and in response to the minimum value and the maximum value being determined to be fittable into the reduced size field, setting the flag to a second value, wherein the second value is different from the first value. 20. At least one non-transitory computer readable medium, comprising a set of instructions, which when executed by a computing device, cause the computing device to: identify a field of a data structure as a candidate for a size reduction; perform a runtime analysis on the field to determine a minimum value assigned to the field and a maximum value assigned to the field; determine whether the minimum value and the maximum value are fittable into a reduced size field; and based on the runtime analysis and in response to the minimum value and the maximum value being determined to be fittable into the reduced size field, reduce a size of the field to the reduced size field and clone or more functions to execute based on new offsets associated with the reduced size field. 21. The at least one non-transitory computer readable medium of claim 20 , comprising a further set of instructions, which when executed by the computing device, cause the computing device to: perform a runtime range analysis on one or more values assigned to the field. 22. The at least one non-transitory computer readable medium of claim 21 , comprising a further set of instructions, which when executed by the computing device, cause the computing device to: copy the field of the data structure to the reduced size field; and
Management thereof · CPC title
Reducing the memory space required by the program code · CPC title
Related publications grouped by family.
Answers are generated from the same data shown on this page.