Back to results
US 11,308,080 B2Granted
Function management method and memory device
AssigneeSilicon Motion, Inc.
InventorKuo-Chiang Hsu
Life of this patent
Estimating the term…
Abstract
A function management method applied to a memory device includes obtaining a plurality of functions through a map file of a compiler, and parsing at least one source code of the memory device with the map file. The functions include at least one normal function and at least one API function. The parsing includes developing a mapping relationship between the at least one API function and the at least one normal function, and developing a calling relationship between the at least one normal function.
Claims8
A function management method for a memory device, comprising:
- generating, by a compiler, a map file according to program codes loaded from the memory device;
- loading, by a processor, the map file from the compiler;
- obtaining, by the processor, a plurality of functions through the map file of the compiler, wherein the functions comprise at least one normal function and at least one application programming interface (API) function, and the map file comprises names of the normal function and the API function, wherein the function which is not be utilized actually is not analyzed;
- distinguishing, by the processor, the normal function and the API function according to the names;
- loading, by the processor, at least one source code from the memory device;
- executing, by the processor, parsing for the at least one source code of the memory device through the map file;
- determining, by the processor, whether or not one of the at least one API function is identical to or is defined as the at least one normal function according to a symbol of the source code to develop a mapping relationship between the at least one API function and the at least one normal function in the memory device;
- determining, by the processor, whether or not another function which is called by the normal function of the source code is a normal function or a API function through the mapping relationship to develop a calling relationship between the at least one normal function in the memory device;
- and
- recording, by the processor, quantity of functions which are called by the normal function, quantity of functions which call the normal function and/or whether the normal function corresponds to the API function or not in the memory device;
- when one of the functions which are called by the normal function is neither the normal function nor the API function, updating, by the processor, the quantity of functions which are called by the normal functions and calling the normal functions to confirm the calling relationship in the memory device, and recording, by the processor, the normal functions in a normal function database of the memory device.
8 more elements
Dependencies are inferred from the claim text.