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

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -