10/31/2023 0 Comments Swig software wrapper![]() ![]() These are LALSuite’s equivalents to the C functions malloc()/ calloc() and free(), but which also provide optional memory debugging features. To fully automate interface generation, SWIGLAL runs SWIG twice: first as a simple C/C++ header parser, then as an wrapper code generator. SWIG does not, however, provide a general framework for automating the application of many directives to arbitrary classes of symbols. For example, specific directives can be applied to every class in order to add constructors and destructors. SWIG wrapper code can be further customised by adding directives which modify the SWIG-generated wrapper code. Given the large number of symbols exported by LALSuite ( Table 1), the automation provided by SWIG relieves LALSuite developers of a significant maintenance burden. Because it takes C/C++ header files directly as input, SWIG does not require additional code to be written specifically for each exported symbol. It then generates the wrapper code required to interface the library with a variety of high-level languages, including Python and Octave. SWIG parses the header files of a C/C++ library and identifies the symbols the library exports. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |