9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Plan9 C compiler targetting WASM
@ 2024-12-15 12:58 Cyber Fonic
  2024-12-17 15:06 ` Daniel Maslowski via 9fans
  2024-12-18 11:09 ` gnufan42 via 9fans
  0 siblings, 2 replies; 8+ messages in thread
From: Cyber Fonic @ 2024-12-15 12:58 UTC (permalink / raw)
  To: Fans of the OS Plan 9 from Bell Labs

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

My Google-fu is not coming up with any definitive results.

Does anybody know of any implementation of Plan9 C compiler targeting WASM ?

On a related note: I believe there was some work being done to target
RISC-V. I can't remember who or where it was located.

Appreciate any references or comments that you might have.

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T006f3c21a31ae0c0-M919ce5c0a873ebd2cd786960
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Plan9 C compiler targetting WASM
  2024-12-15 12:58 [9fans] Plan9 C compiler targetting WASM Cyber Fonic
@ 2024-12-17 15:06 ` Daniel Maslowski via 9fans
  2024-12-17 17:03   ` arnold
  2024-12-17 22:16   ` Richard Miller
  2024-12-18 11:09 ` gnufan42 via 9fans
  1 sibling, 2 replies; 8+ messages in thread
From: Daniel Maslowski via 9fans @ 2024-12-17 15:06 UTC (permalink / raw)
  To: 9fans

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

Regarding RISC-V:
Richard Miller did the port, and there is also an updated kencc. Michael
Engel has it here, also referencing Richard's work:
https://github.com/michaelengel/kencc-cross

On Sun, 15 Dec 2024, 15:46 Cyber Fonic, <cyberfonic@gmail.com> wrote:

> My Google-fu is not coming up with any definitive results.
>
> Does anybody know of any implementation of Plan9 C compiler targeting WASM
> ?
>
> On a related note: I believe there was some work being done to target
> RISC-V. I can't remember who or where it was located.
>
> Appreciate any references or comments that you might have.
> *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/T006f3c21a31ae0c0-M919ce5c0a873ebd2cd786960>
>

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T006f3c21a31ae0c0-M17e718bffbbb5f8b5fea9d14
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Plan9 C compiler targetting WASM
  2024-12-17 15:06 ` Daniel Maslowski via 9fans
@ 2024-12-17 17:03   ` arnold
  2024-12-17 22:16   ` Richard Miller
  1 sibling, 0 replies; 8+ messages in thread
From: arnold @ 2024-12-17 17:03 UTC (permalink / raw)
  To: 9fans

Is there a version of ken-cc that can be used as an
alternative C compiler to compile regular old code
on Linux?

Thanks,

Arnold

"Daniel Maslowski via 9fans" <9fans@9fans.net> wrote:

> Regarding RISC-V:
> Richard Miller did the port, and there is also an updated kencc. Michael
> Engel has it here, also referencing Richard's work:
> https://github.com/michaelengel/kencc-cross
>
> On Sun, 15 Dec 2024, 15:46 Cyber Fonic, <cyberfonic@gmail.com> wrote:
>
> > My Google-fu is not coming up with any definitive results.
> >
> > Does anybody know of any implementation of Plan9 C compiler targeting WASM
> > ?
> >
> > On a related note: I believe there was some work being done to target
> > RISC-V. I can't remember who or where it was located.
> >
> > Appreciate any references or comments that you might have.
> > *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/T006f3c21a31ae0c0-M919ce5c0a873ebd2cd786960>
> >

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T006f3c21a31ae0c0-M3d756ddcda46d60f32b6f3cf
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Plan9 C compiler targetting WASM
  2024-12-17 15:06 ` Daniel Maslowski via 9fans
  2024-12-17 17:03   ` arnold
@ 2024-12-17 22:16   ` Richard Miller
  1 sibling, 0 replies; 8+ messages in thread
From: Richard Miller @ 2024-12-17 22:16 UTC (permalink / raw)
  To: 9fans

> On a related note: I believe there was some work being done to target
> RISC-V. I can't remember who or where it was located.

The riscv (ia/ic/il) and riscv64 (ja/jc/jl) toolchain is available in 9legacy

Also can be built from sources/contrib/miller/riscv.tar


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T006f3c21a31ae0c0-Ma02a537532fd54c6d2ab879a
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Plan9 C compiler targetting WASM
  2024-12-15 12:58 [9fans] Plan9 C compiler targetting WASM Cyber Fonic
  2024-12-17 15:06 ` Daniel Maslowski via 9fans
@ 2024-12-18 11:09 ` gnufan42 via 9fans
  2024-12-18 20:34   ` moody
  2024-12-19  8:14   ` Cyber Fonic
  1 sibling, 2 replies; 8+ messages in thread
From: gnufan42 via 9fans @ 2024-12-18 11:09 UTC (permalink / raw)
  To: 9fans

> Does anybody know of any implementation of Plan9 C compiler targeting WASM ?

I don't think there is one. I found a project that claims to be a WebAssembly port of Plan9 not long time ago: https://github.com/xphung/plan9_webasm, and they used Emscripten. If you want a Plan9 C compiler targeting WASM you'll probably have to make one yourself, although I could be wrong.

Would you mind to share your use case?


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T006f3c21a31ae0c0-M662bbeb5eaff7005c1d5f04e
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Plan9 C compiler targetting WASM
  2024-12-18 11:09 ` gnufan42 via 9fans
@ 2024-12-18 20:34   ` moody
  2024-12-19  8:14   ` Cyber Fonic
  1 sibling, 0 replies; 8+ messages in thread
From: moody @ 2024-12-18 20:34 UTC (permalink / raw)
  To: 9fans

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

Just wanted to note that in addition (and with the help of) Richard Miller's work on riscv, I was able to import the userspace portions for riscv into 9front. The result of that work is not merged (there has yet to be someone that has put in the work to write a 9front kernel for riscv) however the userspace bits function well enough to compile the entire 9front userspace. I don't anticipate more work happening on this front soon, but if anyone is curious the repository can be found here: https://shithub.us/moody/riscv/HEAD/info.html
------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T006f3c21a31ae0c0-Mca4398b047579de1957a0aab
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Plan9 C compiler targetting WASM
  2024-12-18 11:09 ` gnufan42 via 9fans
  2024-12-18 20:34   ` moody
@ 2024-12-19  8:14   ` Cyber Fonic
  2024-12-19 14:22     ` Matt Wilbur
  1 sibling, 1 reply; 8+ messages in thread
From: Cyber Fonic @ 2024-12-19  8:14 UTC (permalink / raw)
  To: 9fans

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

I admire the cross-compilation capabilities of Plan9. Compared to gcc and
Clang, Plan9 C compilers appeal to my sense of aesthetics. There are some
utilities that I would like to port to browser environments and I am loath
to use plan9port sources and thus wrangle with gcc, etc.

I totally concur with Nicklaus Wirth:  "Increasingly, people seem to
misinterpret complexity as sophistication, which is baffling -- the
incomprehensible should cause suspicion rather than admiration."

On Thu, 19 Dec 2024 at 00:20, gnufan42 via 9fans <9fans@9fans.net> wrote:

> > Does anybody know of any implementation of Plan9 C compiler targeting
> WASM ?
> 
> I don't think there is one. I found a project that claims to be a
> WebAssembly port of Plan9 not long time ago:
> https://github.com/xphung/plan9_webasm, and they used Emscripten. If you
> want a Plan9 C compiler targeting WASM you'll probably have to make one
> yourself, although I could be wrong.
> 
> Would you mind to share your use case?
> 

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T006f3c21a31ae0c0-M6b0ff8378bd25bf78ab4b8e6
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [9fans] Plan9 C compiler targetting WASM
  2024-12-19  8:14   ` Cyber Fonic
@ 2024-12-19 14:22     ` Matt Wilbur
  0 siblings, 0 replies; 8+ messages in thread
From: Matt Wilbur @ 2024-12-19 14:22 UTC (permalink / raw)
  To: 9fans

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

As someone who works in embedded systems in a horrible train-wreck of C++,
I second this heartily.

On Thu, Dec 19, 2024 at 7:02 AM Cyber Fonic <cyberfonic@gmail.com> wrote:

> I admire the cross-compilation capabilities of Plan9. Compared to gcc and
> Clang, Plan9 C compilers appeal to my sense of aesthetics. There are some
> utilities that I would like to port to browser environments and I am loath
> to use plan9port sources and thus wrangle with gcc, etc.
>
> I totally concur with Nicklaus Wirth:  "Increasingly, people seem to
> misinterpret complexity as sophistication, which is baffling -- the
> incomprehensible should cause suspicion rather than admiration."
>
> On Thu, 19 Dec 2024 at 00:20, gnufan42 via 9fans <9fans@9fans.net> wrote:
>
>> > Does anybody know of any implementation of Plan9 C compiler targeting
>> WASM ?
>> 
>> I don't think there is one. I found a project that claims to be a
>> WebAssembly port of Plan9 not long time ago:
>> https://github.com/xphung/plan9_webasm, and they used Emscripten. If you
>> want a Plan9 C compiler targeting WASM you'll probably have to make one
>> yourself, although I could be wrong.
>> 
>> Would you mind to share your use case?
>> 
> *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/T006f3c21a31ae0c0-M6b0ff8378bd25bf78ab4b8e6>
>

------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T006f3c21a31ae0c0-M2e2746e37fee0044fdd51d86
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2024-12-19 15:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-15 12:58 [9fans] Plan9 C compiler targetting WASM Cyber Fonic
2024-12-17 15:06 ` Daniel Maslowski via 9fans
2024-12-17 17:03   ` arnold
2024-12-17 22:16   ` Richard Miller
2024-12-18 11:09 ` gnufan42 via 9fans
2024-12-18 20:34   ` moody
2024-12-19  8:14   ` Cyber Fonic
2024-12-19 14:22     ` Matt Wilbur

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).