9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Charles Forsyth <charles.forsyth@gmail.com>
To: 9fans <9fans@9fans.net>
Subject: Re: [9fans] How can I compile c code written for plan9 in ANIS C compiler
Date: Thu, 6 Oct 2022 11:21:10 +0100	[thread overview]
Message-ID: <CAOw7k5hYGuWNA1vnAde5-om=qzN3jNuU_d4Wr=wEGsLY6zLCCA@mail.gmail.com> (raw)
In-Reply-To: <SI2PR03MB5689922B8E6EDF9283B9969E905C9@SI2PR03MB5689.apcprd03.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1502 bytes --]

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 should be able to use its mk, 9c and
9l and mkfile structure to compile your Plan 9 code directly (since that's
how the Plan 9 libraries are compiled in plan9port).
The main restriction is that various Plan 9 C extensions aren't available,
so those need to be removed first.


On Thu, 6 Oct 2022 at 01:17, _ resun <saif.resun@outlook.com> wrote:

> 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 <https://9fans.topicbox.com/latest>* / 9fans / see discussions
> <https://9fans.topicbox.com/groups/9fans> + participants
> <https://9fans.topicbox.com/groups/9fans/members> + delivery options
> <https://9fans.topicbox.com/groups/9fans/subscription> Permalink
> <https://9fans.topicbox.com/groups/9fans/T422378fc25787720-Md3d0a11d2e117c329f963aff>
>

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T422378fc25787720-M69ab07438d3e53337fba4ee2
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

[-- Attachment #2: Type: text/html, Size: 2331 bytes --]

  parent reply	other threads:[~2022-10-06 10:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-06  0:15 _ resun
2022-10-06  6:45 ` Steve Simon
2022-10-06 10:21 ` Charles Forsyth [this message]
2022-10-06 11:29   ` Steve Simon
2022-10-06 12:14     ` _ resun
2022-10-10  2:39   ` _ resun
2022-10-10  3:57     ` mkf9
2022-10-10  8:50       ` Steve Simon
2022-10-11 19:32         ` ron minnich
2022-10-11 23:07           ` ron minnich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAOw7k5hYGuWNA1vnAde5-om=qzN3jNuU_d4Wr=wEGsLY6zLCCA@mail.gmail.com' \
    --to=charles.forsyth@gmail.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).