RSO Sample Demo - MakeInc

Location

$REVOLUTION_SDK_ROOT/build/demos/rsodemo/MakeInc

Overview

An example program using makeinc.exe.
Module D functions and variables are accessed using d.inc, which is generated from a specific format d.h using
makeinc.exe.

Description

d.h is included in static.c, sub.c, and d.c.
It is made to be usable from both static modules (static.c, sub.c) and dynamic modules (d.c) by changing definitions on DLL_EXPORT and DLL_SYMBOL.

d.inc is generated from d.h using makeinc.exe. See makeinc.exe for d.h format.
The command is as follows:


makeinc.exe -o d.inc -l moduleD d.h

d.inc outputs label table exp_tbl_moduleD[], function unresolved_moduleD which indicates unresolved state, ResolvedModule_moduleD which sets addresses to individual function pointers, and UnresolvedModule_moduleD which sets individual addresses to point unresolved (unresolved_moduleD).

Call ResolvedModule_moduleD after creating a link, and UnresolvedModule_moduleD after breaking a link.

See Also

Demo Program List
makeinc.exe
RSOListInit, RSOLinkList, RSOUnLinkList, RSOFindExportSymbolAddr, RSOIsImportSymbolResolvedAll,

Revision History

06/14/2006 Initial version.


CONFIDENTIAL