Saturday, January 31, 2009

if you want a k n r program to build in plan9

(12:56:55 PM) j: ok, let me try to summarize this, hopefully someone will correct me if im imprecise or inaccurate
(12:58:31 PM) j: plan 9 has its own dialect of C - however it also has an ansi/posix compatible compiler/build environment in addition - and furthermore, you can use certain libraries like stdio in plan 9 C even though you will get better performance using the native bio library instead
(12:59:52 PM) j: in the context of the k&r examples, they will generally all work fine in plan 9 using the plan 9 compilers with a little bit of intelligence in adjusting the #include directives
(01:00:08 PM) the_unmaker: ahha
(01:03:18 PM) j: for the most part, if you want a k&r program to build in plan9, you #include , , and and it will build fine with 8c -FVw foo.c && 8l -o foo foo.8

No comments: