$REVOLUTION_SDK_ROOT/build/demos/rsodemo/Manually
Sample for not using linked lists.
The link will be specified directly from the program.
The internal operation of each module is completed using RSOStaticLocateObject or RSOLocateObject, and each module will be linked using RSOLink.
Enter the following to reference module B from module A.
|
To break a link, disconnect all links using RSOUnLink, and use RSOUnLocateObject to return the internal information to pre-link state.
Enter the following to stop referencing module B from module A.
|
When a linked list is used, links are created for all combinations, resulting in unnecessary link operations.
By doing this operation manually, unnecessary link processing can be avoided.
In the sample, since we know that module C references only the static module, it is not linked with other dynamic modules.
This should be effective in shortening the link processing time for dynamic modules that do not link to static modules (module C).
However, when functions are called between dynamic modules (module A and module B), it is easier to use the linked list, as the procedure for creating and breaking links becomes complicated.
The benefit of manual operation is that unnecessary link operations can be omitted. The downside is that management becomes complicated.
Note: Manual and linked list operations cannot be used together. Do not use a linked list when manual specifications are made.
Demo Program List
RSOStaticLocateObject, RSOLocateObject, RSOUnLocateObject, RSOLink, RSOUnLink, RSOFindExportSymbolAddr, RSOIsImportSymbolResolvedAll,
06/14/2006 Initial version.
CONFIDENTIAL