ah found one. This was for one instance of where mach was used. It
basically says if mach is used in a function, put a declaration of m at the
start of the function.
@mr exists@
typedef Mach; // only needed once per semantic patch
idexpression Mach *m;
function f;
position p;
identifier d;
@@
we used the coccinnelle tool (spatch) to convert about 1.4M lines of Plan 9
code to C11 for harvey. It was not perfect, but it did get a lot right.
This even got pretty complex: in amd64 Plan 9, r14 and r15 are dedicated to
up and mach.
This is not portable, so we wanted to make it explicit. So
re: p9p for windows
Sean Quinlan did a p9p-line port for windows called 9pm, It was seen (it seems)
as a port of sam with some simple command line tools
rather than a complete plan9 toolkit. its available here:
https://netlib.org/research/ as sam.exe
There was an attempt at a p9p for windows
rles.fors...@gmail.com>
Sent: Thursday, October 6, 2022 16:21
To: 9fans<mailto:9fans@9fans.net>
Subject: Re: [9fans] How can I compile c code written for plan9 in ANIS
C compiler
If you look at plan9port (eg, https://9fans.github.io/plan9port/),
you'll see how that's done for a good chunk
nt: Thursday, October 6, 2022 16:21
To: 9fans<mailto:9fans@9fans.net>
Subject: Re: [9fans] How can I compile c code written for plan9 in ANIS C
compiler
If you look at plan9port (eg, https://9fans.github.io/plan9port/), you'll see
how that's done for a good chunk of the application code of Pla
y, October 6, 2022 17:30
To: 9fans<mailto:9fans@9fans.net>
Subject: Re: [9fans] How can I compile c code written for plan9 in ANIS C
compiler
apologies for completely missing the point,
note to self: coffee first, then reply to mailing lists
-Steve
On 6 Oct 2022, at 11:21, Charles Forsyt
apologies for completely missing the point,
note to self: coffee first, then reply to mailing lists
-Steve
> On 6 Oct 2022, at 11:21, Charles Forsyth wrote:
>
>
> If you look at plan9port (eg, https://9fans.github.io/plan9port/), you'll see
> how that's done for a good chunk of the
If you look at plan9port (eg, https://9fans.github.io/plan9port/), you'll
see how that's done for a good chunk of the application code of Plan 9
(using host C compilers).
It also includes versions of the Plan 9 libraries that will also compile on
other systems.
Indeed, if you install plan9port you
the native plan9 c environment is similar to ansi c but has some differences,
mainly to the standard libraries.
plan9 also has an ansi/posix environment which is aimed at making it easier to
port foreign code.
to use ape, use the pcc command.
there is a fairly complete command line
Hi there!
Is there any way I can compile a C code that is written for plan9 using a ANSI
C compile? Is there any way to replace the plan9 headers with ANSI standard c
headers?
Thank you.
_resun
--
9fans: 9fans
Permalink:
10 matches
Mail list logo