This commit is contained in:
parent
cbe2332ab0
commit
0fed5759d7
24
src/9c.gmi
24
src/9c.gmi
|
@ -1,3 +1,25 @@
|
|||
# 9c
|
||||
|
||||
9c is the flavor of [[c]] used by [[plan9]].
|
||||
9c is the flavor of [[c]] used by [[plan9]].
|
||||
|
||||
It is similar but different from ansi c.
|
||||
|
||||
Firstly, compiling and linking are two different steps not handled by the same program.
|
||||
|
||||
On [[sans]] you can use them by running
|
||||
|
||||
```
|
||||
9 9c hi.c
|
||||
9 9l hi.o -o hi
|
||||
```
|
||||
|
||||
This will compile the source file hi.c, creating hi.o
|
||||
|
||||
Then, 9l, the linker, will create the executable hi from hi.o
|
||||
|
||||
The prefixing 9 isn't standard to plan9, but is used on sans to avoid collisions in binary naming provided by plan9port.
|
||||
|
||||
=> https://plan9.io/sys/doc/comp.html how to use the plan9 c compiler
|
||||
=> https://wiki.xxiivv.com/site/plan9_c.html wiki.xxiivv.com on plan9 c
|
||||
=> http://doc.cat-v.org/plan_9/programming/c_programming_in_plan_9 c programming in plan9 from bell labs
|
||||
=> https://9fans.github.io/plan9port/man/man1/9c.html plan9port 9c
|
|
@ -4,6 +4,6 @@ compilers
|
|||
|
||||
* [[clang]]
|
||||
* [[gcc]]
|
||||
* [[9c]] ([[plan9]]'s c)
|
||||
* [[9c]] ([[plan9]]'s flavor of c)
|
||||
* [[chibicc]]
|
||||
|
||||
|
|
|
@ -1 +1,17 @@
|
|||
# plan9
|
||||
# plan9
|
||||
|
||||
Plan9 is a distributed operating system from Bell Labs.
|
||||
|
||||
Plan9 provides many interesting tools, and takes on unix. To have access to them here on [[sans]] we use plan9port to provide plan9 tools in user space.
|
||||
|
||||
To get at them here, you'll need to prefix the command with 9, e.g.
|
||||
|
||||
9 rc will launch rc, plan9's shell
|
||||
9 [[9c]] will launch plan9's c compiler
|
||||
9 grep will launch plan9's flavor of grep, etc.
|
||||
|
||||
For a full list of the stuff you can use, see plan9port's documentation (linked below)
|
||||
|
||||
=> http://9p.io/plan9/ plan9 foundation
|
||||
=> https://9fans.github.io/plan9port/ plan9port
|
||||
=> https://9fans.github.io/plan9port/man/man1/intro.html plan9port docs
|
Loading…
Reference in New Issue