Home > User Support > CoverageMaster winAMS FAQ

CoverageMaster winAMS FAQ

Stub Functions

002_05: Is it possible to create a stub function for a function written in assembly code?

Question:

Is it possible to create a stub function for a function written in assembly code?

Answer:

No, it is not. The original function must be written in C code in order to create a stub function. It is not possible to create a stub function for an assembly function because the symbol structure in the debug information is different from a C function.

As a workaround, a stub function for an assembly function can be created by creating a dummy C function, not linking the original assembly function and compiling and linking the dummy C function instead.

This will create the symbol information for the dummy function and the function name can be selected in the Stub Settings screen.


Related Technical Tips Search

Other technical tips in GAIO's web site can be searched for using the links below.

Search key word link: Assembly function stub
Related Technical Tips Search

 


Information Links