Dynamic loading method, and target file creation method and apparatus
Abstract:
The application provides a dynamic loading method, and a target file creation method and apparatus to save memory resources. The method includes: loading a dynamic link library file during a running process of an application program on a terminal device, where the dynamic link library file includes a symbol that can implement a functionality in the application program, and the symbol includes a function and/or a variable; reading a first index from a source file of the application program; determining, based on a global symbol table, a first symbol address corresponding to the first index, where the first symbol address is used for indicating a physical address of the symbol that can implement the functionality and invoking the symbol from the dynamic link library file according to the first symbol address, to complete running of the application program.
Information query
Patent Agency Ranking
0/0