lang/tcc: C 言語コンパイラ/インタプリタ2006年05月17日 09時51分26秒

tccと言う C コンパイラが ports に入った。 ports/lang/tccはこちらから。

とても面白い機能を搭載している。ports の Makefile から。


Tcc is a small and fast C compiler with the following features:
  * Small: You can compile and execute C code everywhere, for
    example on rescue disks (about 100KB for x86 TCC executable,
    including C preprocessor, C compiler, assembler and linker).
  * Fast: tcc generates optimized x86 code. No byte code overhead.
    Compile, assemble and link several times faster than GCC.
  * Unlimited: Any C dynamic library can be used directly. TCC is
    heading torward full ISOC99 compliance. TCC can of course compile
    itself.
  * Safe: tcc includes an optional memory and bound checker. Bound
    checked code can be mixed freely with standard code.
  * Compile and execute C source directly. No linking or assembly
    necessary. Full C preprocessor and GNU-like assembler included.
  * C script supported : just add '#!/usr/local/bin/tcc -run' at
    the first line of your C source, and execute it directly from the
    command line.
  * With libtcc, you can use TCC as a backend for dynamic code
    generation.

コンパイルが速いだけでなく、インタプリタとして、C 言語を実行できるらしい。外部ライブラリをどう扱っているのだろうか。実は、インタプリタで C 言語を実行できる環境が欲しいとずっと思っていた。暇がたくさんあれば書きたいとは思っていたが、現実的にはそんな時間など、とてもとても。

しかし、本当に入りたて。これを書いている時点でも二十四時間も経っていない。それ故、daily ports.tar.gz には入っていない。明日にでも試してみる。

コメント

コメントをどうぞ

※メールアドレスとURLの入力は必須ではありません。 入力されたメールアドレスは記事に反映されず、ブログの管理者のみが参照できます。

※なお、送られたコメントはブログの管理者が確認するまで公開されません。

名前:
メールアドレス:
URL:
コメント:

トラックバック

このエントリのトラックバックURL: http://uyota.asablo.jp/blog/2006/05/17/368593/tb

※なお、送られたトラックバックはブログの管理者が確認するまで公開されません。