Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread John Floren
On Mon, Mar 29, 2021 at 10:47 AM Russ Cox wrote: > > On March 29, 2021, arn...@skeeve.com wrote: > > OK - wasn't kenc ported to Linux for bootstrapping the early > Go compilers? Is that version general, or not worth my trying to use? > > > The early Go compilers, written in C, were compiled with

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread arnold
Russ Cox wrote: > Standard C has moved on, and the Plan 9 C compilers have not kept up. > They're still fine for Plan 9 C code, but given the choice > I wouldn't throw anything else at them. That's pretty definitive. Thanks. Arnold -- 9fans: 9fans

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread Russ Cox
On March 29, 2021, arn...@skeeve.com wrote: > OK - wasn't kenc ported to Linux for bootstrapping the early > Go compilers? Is that version general, or not worth my trying to use? The early Go compilers, written in C, were compiled with gcc or clang. The Plan 9 C compiler was used for the Go

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread arnold
OK - wasn't kenc ported to Linux for bootstrapping the early Go compilers? Is that version general, or not worth my trying to use? Thanks, Arnold Charles Forsyth wrote: > > > > I doubt very much that using the Plan 9 C compilers will bring much > > additional benefit for finding bugs (except

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread ori
Quoth arn...@skeeve.com: > Hi Russ. > > Thanks for this. You are probably right, but it's always good to > test against as many compilers as possible. > > Out of curiousity, why is linking against the system libraries so > hard? I assume a port of kenc to Linux would have a driver program >

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread Charles Forsyth
> > I doubt very much that using the Plan 9 C compilers will bring much > additional benefit for finding bugs (except bugs in the compiler!). The cross-file type-checking does sometimes pick up unpleasantness caused by type mismatches. It was originally added to allow dynamically-loaded object

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread arnold
Hi Russ. Thanks for this. You are probably right, but it's always good to test against as many compilers as possible. Out of curiousity, why is linking against the system libraries so hard? I assume a port of kenc to Linux would have a driver program that would just invoke the system ld(1).

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread Russ Cox
Hi Arnold, The hard part is not so much the compiling but the linking against system libraries. Honestly once you have both gcc and clang happy (with no warnings), I doubt very much that using the Plan 9 C compilers will bring much additional benefit for finding bugs (except bugs in the

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-29 Thread arnold
Is there a usable, standalone, 32- or 64-bit version of kenc that works on Linux? By "usable" I mean "able to compile and run regular Linux code". For example, oh, say, compiling and testing GNU Awk. :-) (Besides GCC and clang, I test gawk with tinycc and the revived PCC compilers. I have often

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-28 Thread Ethan Gardener
On Sun, Mar 28, 2021, at 10:21 AM, Sean Hinchee wrote: > Inferno 8c should work fine on Win10 :) it runs and produces output. :) i didn't check if the output works; wasn't even sure how to produce a testable binary as it couldn't even find u.h. -- 9fans:

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-28 Thread Ethan Gardener
On Sun, Mar 28, 2021, at 2:16 PM, saif.re...@outlook.com wrote: > uh inferno's 8c compiles .exe file? no, 8c doesn't produce any executables, it leaves that to the linker, 8l. by default, 8l produces plan 9 executables, but the -H option can produce some other

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-28 Thread Paul Lalonde
You're now asking a question of ABI (application binary interface) more than of the compiler. The ABI is the hard part - what the calling conventions are, linkage and executable formats, etc, which vary significantly from system to system. You may find a way to compile the compiler so it runs in

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-28 Thread ron minnich
Nxm built kencen toolchain on Linux. https://github.com/rminnich/NxM We could build all of plan9 on Linux. You might be able to start there and produce .Exe's. Not tested for quite some time now. Derived from nix. On Sun, Mar 28, 2021, 6:17 AM wrote: > uh inferno's 8c compiles .exe file? >

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-28 Thread saif . resun
uh inferno's 8c compiles .exe file? -- 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T4d77cc95ab4ed70c-M3f3b47b1f09745ffc88175bf Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-28 Thread Sean Hinchee
Inferno 8c should work fine on Win10 :) Cheers, Sean On Sunday, March 28, 2021, Richard Miller <9f...@hamnavoe.com> wrote: > > I want to use Plan9 compiler (8c) on my windows 10 system. > > Not possible except by running Plan 9 on a virtual machine. > > You can, however, use the inferno

Re: [9fans] Can compile Plan9 C compiler for windows10?

2021-03-28 Thread Richard Miller
> I want to use Plan9 compiler (8c) on my windows 10 system. Not possible except by running Plan 9 on a virtual machine. You can, however, use the inferno version of 8c on some windows platforms. I don't know if windows 10 is one of them. -- 9fans: 9fans