Skip to content
oraccha edited this page Jan 14, 2013 · 1 revision

Plan 9 from User Space

  • [http://swtch.com/plan9port/ 本家] . Plan9 のアプリケーション群を Unix に移植するプロジェクト.

2005-03-23 . とりあえず Linux マシン上にインストール. 早速 RobPike 氏作の [http://plan9.aichi-u.ac.jp/acme1/ acme] の操作方法に衝撃を受けつつ, HelloWorld をコンパイル.

  • インクルードファイルが違うね.s/printf/print/ に!

{{{ #include <u.h> #include <libc.h>

int main(int argc, char **argv) { print("Hello, world!\n"); return 0; } }}}

で,9term 上から.(別に gnome-terminal からでもOK) {{{ $ 9c hello.c $ 9l hello.o $ ./a.out Hello, world! $ }}}

[http://p9c.cc.titech.ac.jp/plan9/prog.html ここ]には i386 システムでのコンパイラは 8c って書いてあるんだけど,9c だった.これは Plan9port だけの話?

Clone this wiki locally