It will be complete soon...
SWIG is a software development tool that connects programs written in
C and C++ with a variety of high-level programming
languages. SWIG is used with different types of languages including common scripting languages such as
Perl, PHP, Python, Tcl and Ruby. See also
In M5, configuration files are written in Python, while system components are written in C++. Those .hh and .cc file contains C++ objects declaration and implementation. In M5, the .cc files do not actually contains implementation files, instead, the .cc files only contains a template instantiation, while the low level implementation files are those _impl.cc files.
To form the whole simulation system, M5 use a hierarchy of Python configuration files responsible for components connection and instantiation. This instantiated system works by invoking the low level C++ implementation. This is where the swig works.
阅读(352) | 评论(0) | 转发(0) |