SWIG

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
(External links)
 
(未显示1个用户的2个中间版本)
第1行: 第1行:
 +
{{top news}}
 
{{SeeWikipedia}}
 
{{SeeWikipedia}}
  
第12行: 第13行:
  
 
SWIG is written in C and C++ and has been publicly available since February [[1996]]. The initial author was [[Dave Beazley]], who developed SWIG while working as a graduate student at [[Los Alamos National Laboratory]] and the [[University of Utah]]. Development is currently supported by an active group of volunteers. SWIG has been released under a [[BSD license|BSD type license]], meaning it can be used, copied, modified and redistributed freely, for commercial and non-commercial purposes.
 
SWIG is written in C and C++ and has been publicly available since February [[1996]]. The initial author was [[Dave Beazley]], who developed SWIG while working as a graduate student at [[Los Alamos National Laboratory]] and the [[University of Utah]]. Development is currently supported by an active group of volunteers. SWIG has been released under a [[BSD license|BSD type license]], meaning it can be used, copied, modified and redistributed freely, for commercial and non-commercial purposes.
 +
 +
==新闻==
 +
<rss>http://sourceforge.net/export/rss2_projnews.php?group_id=1645&rss_limit=50&rss_fulltext=1|short|date|max=10</rss>
  
 
==See also==
 
==See also==
 
*[[Foreign function interface]]
 
*[[Foreign function interface]]
  
==External links==
+
==链接==
*[http://www.swig.org/ Project home page]
+
*[http://www.swig.org/ SWIG主页]
 +
*[http://docs.huihoo.com/swig SWIG文档]
 
*[http://www.dabeaz.com/cgi-bin/wiki.pl SwigWiki] - [[Wiki]] containing information about using SWIG.
 
*[http://www.dabeaz.com/cgi-bin/wiki.pl SwigWiki] - [[Wiki]] containing information about using SWIG.
 
*Article "[http://codeguru.com/csharp/.net/net_asp/scripting/article.php/c11103/ Expose Your C/C++ Program's Internal API with a Quick SWIG]" by [[Victor Volkman]]
 
*Article "[http://codeguru.com/csharp/.net/net_asp/scripting/article.php/c11103/ Expose Your C/C++ Program's Internal API with a Quick SWIG]" by [[Victor Volkman]]
第23行: 第28行:
 
*[http://www.skwash.com/ sKWash: the free open source SWIG GUI]
 
*[http://www.skwash.com/ sKWash: the free open source SWIG GUI]
  
{{Comment}}
+
{{comment}}
  
[[Category:Programming Language]]
+
[[category:programming language]]

2015年2月28日 (六) 06:18的最后版本

Wikipedia-35x35.png 您可以在Wikipedia上了解到此条目的英文信息 SWIG Thanks, Wikipedia.

SWIG (Simplified Wrapper and Interface Generator) is a free computer software tool used to connect programs written in C/C++ with scripting languages such as Lua, Tcl, Perl, Python, Ruby, Guile, Chicken, PHP and other languages like Java, C#, and Ocaml. The aim is to achieve this connection with minimal effort: a small number of directives are added to the program's header files. Running the SWIG tool creates source code which provides the glue between C/C++ and the target language. Depending on the language, this glue comes in three forms: an executable that embeds the interpreter for the scripting language, a shared library that links into an existing interpreter as some form of extension module, or a shared library that can be linked to other programs compiled in the target language (for example, using JNI).

There are two main purposes of embedding a scripting engine into an existing C/C++ program:

  • The program can then be customized much more quickly, using the scripting language rather than C/C++. The scripting engine may even be exposed to the end user, so that they can automate common tasks by writing scripts.
  • Even if the final product is not to contain the scripting engine, it may nevertheless be quite useful to write testing scripts.

There are a very wide variety of reasons to create dynamic libraries that can be loaded into existing interpreters, including:

  • Provide access to a C/C++ library which has no equivalent in the scripting language.
  • Write the whole program in the scripting language, and after profiling, rewrite performance critical code in C or C++.

SWIG is written in C and C++ and has been publicly available since February 1996. The initial author was Dave Beazley, who developed SWIG while working as a graduate student at Los Alamos National Laboratory and the University of Utah. Development is currently supported by an active group of volunteers. SWIG has been released under a BSD type license, meaning it can be used, copied, modified and redistributed freely, for commercial and non-commercial purposes.

[编辑] 新闻

自http://sourceforge.net/export/rss2_projnews.php?group_id=1645&rss_limit=50&rss_fulltext=1加载RSS失败或RSS源被墙

[编辑] See also

[编辑] 链接

Comment-32x32.png

<discussion>characters_max=300</discussion>

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱