I have been programming in ASM some project, which, together with the source code will have to transfer to the customer. But this project contains some of the functions source code which I do not want give to customer. I went as follows: i create a library and needed for me function connect to my project with
EXTERN CODE(function name)
, and calling this function by
lcall function name
. But this solution is not best. When i call function from library many times each call using 5 CLK for lcall and 4 CLK fro ret, and this slows the program. Maybe somebody knows call function from library without lcall and ret instruction. In C++(on PC),example, i using
inline
statement, maybe something similar is ASM(or Ax51).
Thanks for all!.
If the question is "is the inlining functionality present in the linker" then the answer is "no." Normally, a linker is designed to resolve references, calculate and fill in addresses, and maybe perform some optimizations such as removal of unreferenced objects and replacement of far jumps with relative ones. Inlining is normally done by a compiler.