shithub: docs.9front.org

Download patch

ref: ec16903043083d9f784a36d3ddc68df4f7584e40
parent: b7931064b8c74dbb24085063d20260b4c58928e2
author: kvik <kvik@a-b.xyz>
date: Thu Oct 29 12:58:43 EDT 2020

programming: add article from old wiki (thanks Amavect)

--- /dev/null
+++ b/programming.md
@@ -1,0 +1,36 @@
+# C Programming
+
+## Pointers
+
+Here are some pointers about C programming on Plan 9.
+
+### Beginners
+
+[C Programming in Plan 9](http://doc.cat-v.org/plan_9/programming/c_programming_in_plan_9)
+
+### General information
+
+* 2c(1), 2l(1), 2a(1)
+* `/sys/doc/comp.ps`
+* `/sys/doc/compiler.ps`
+
+### Style guides
+
+* style(6)
+* [Pike style](http://doc.cat-v.org/bell_labs/pikestyle)
+* [aiju style](http://aiju.de/misc/c-style)
+
+## Notes
+
+2c, 6c, 8c, etc all refer to the same compiler suite, but each
+compiles for a different target architecture.  The compiler suite is
+sometimes referred to as kencc.  The language itself is sometimes
+referred to as 9c.
+
+## ANSI C
+
+If an ANSI C compiler is needed, use pcc.
+
+* pcc(1)
+* cpp(1)
+* `/sys/doc/ape.ps`