c++ - Import a function from a different module -
say function f_a
in module m_a
calls function f_b
in module m_b
. reference across module m_a
. now, i'd make module m_a
self-contained, i.e. eliminate references other module. however, module m_b
large in size. (in case contains maths functions in fast/accurate , single/double implementation). there way add function f_b
module m_a
using llvm c++ api? or have use linker api , merge whole module m_b
m_a
?
use text editor , cut'n'paste function target module. if link whole m_b, linker should still able detect large parts of aren't used , discard them when creating final executable. issue trying solve?
Comments
Post a Comment