25 lines
812 B
Plaintext
25 lines
812 B
Plaintext
# 9c
|
|
|
|
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 |