From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Tue, 31 Aug 2010 09:10:42 -0700 Message-ID: From: David Leimbach To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=00163646c37ea463e8048f20d2b8 Subject: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4bd3d27a-ead6-11e9-9d60-3106f5b1d025 --00163646c37ea463e8048f20d2b8 Content-Type: text/plain; charset=ISO-8859-1 I've seen a little bit of information about trying to go to LLVM for Inferno, and getting LLVM on Plan 9 natively (feasibility anyway), and I was wondering if there's any official projects chasing this in earnest? Now that I've got an ARM and an x86 plan 9 instance up, I might have some time, but I can tell you compilers are definitely not my specialty :-). Dave --00163646c37ea463e8048f20d2b8 Content-Type: text/html; charset=ISO-8859-1 I've seen a little bit of information about trying to go to LLVM for Inferno, and getting LLVM on Plan 9 natively (feasibility anyway), and I was wondering if there's any official projects chasing this in earnest?

Now that I've got an ARM and an x86 plan 9 instance up, I might have some time, but I can tell you compilers are definitely not my specialty :-).

Dave
--00163646c37ea463e8048f20d2b8-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 31 Aug 2010 10:33:53 -0800 Message-ID: From: Nick LaForge To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0016e6d7e352b50a32048f22d2e7 Subject: Re: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4bfb0dea-ead6-11e9-9d60-3106f5b1d025 --0016e6d7e352b50a32048f22d2e7 Content-Type: text/plain; charset=UTF-8 Is this a trick to get C++ back on Plan9?? --0016e6d7e352b50a32048f22d2e7 Content-Type: text/html; charset=UTF-8 Is this a trick to get C++ back on Plan9?? --0016e6d7e352b50a32048f22d2e7-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 31 Aug 2010 12:48:44 -0700 Message-ID: From: David Leimbach To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0015175cb4a45f79c5048f23de35 Subject: Re: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4c043f8c-ead6-11e9-9d60-3106f5b1d025 --0015175cb4a45f79c5048f23de35 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Aug 31, 2010 at 11:33 AM, Nick LaForge wrote: > Is this a trick to get C++ back on Plan9?? Actually I'm not as interested in C++ as others may be. I'm more interested in the general capabilities of LLVM. It's a pretty nice target for making little languages. There's tutorials for doing so from O'Caml and Haskell for example. Dave --0015175cb4a45f79c5048f23de35 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Aug 31, 2010 at 11:33 AM, Nick L= aForge <nickl= aforge@gmail.com> wrote:
Is this a trick to get C++ back on Plan9??

Actually I'm not as interested i= n C++ as others may be. =A0I'm more interested in the general capabilit= ies of LLVM. =A0It's a pretty nice target for making little languages. = =A0There's tutorials for doing so from O'Caml and Haskell for examp= le.

Dave
--0015175cb4a45f79c5048f23de35-- From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> MIME-Version: 1.0 Date: Tue, 31 Aug 2010 14:56:26 -0600 From: EBo In-Reply-To: References: Message-ID: User-Agent: RoundCube Webmail/0.3.1 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] =?utf-8?q?LLVM_for_plan_9=3F?= Topicbox-Message-UUID: 4c118548-ead6-11e9-9d60-3106f5b1d025 > Is this a trick to get C++ back on Plan9?? was it ever? From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 31 Aug 2010 16:59:56 -0400 From: Ori Bernstein To: 9fans@9fans.net Message-Id: <20100831165956.4790512c.ori@eigenstate.org> In-Reply-To: References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4c15c7ca-ead6-11e9-9d60-3106f5b1d025 LLVM is written in C++, so you'd need C++ support on plan 9 first. Probably the easiest way to do that would be to add support for plan 9 binaries to clang, and cross-compile llvm for plan 9 with itself. At least, that's the path I'd take if I was interested in trying. On Tue, 31 Aug 2010 09:10:42 -0700, David Leimbach wrote: > I've seen a little bit of information about trying to go to LLVM for > Inferno, and getting LLVM on Plan 9 natively (feasibility anyway), and I was > wondering if there's any official projects chasing this in earnest? > > Now that I've got an ARM and an x86 plan 9 instance up, I might have some > time, but I can tell you compilers are definitely not my specialty :-). > > Dave -- Ori Bernstein From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20100831165956.4790512c.ori@eigenstate.org> References: <20100831165956.4790512c.ori@eigenstate.org> Date: Tue, 31 Aug 2010 14:03:41 -0700 Message-ID: From: David Leimbach To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=00163646d97772a2b7048f24eabd Subject: Re: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4c19d4aa-ead6-11e9-9d60-3106f5b1d025 --00163646d97772a2b7048f24eabd Content-Type: text/plain; charset=ISO-8859-1 On Tue, Aug 31, 2010 at 1:59 PM, Ori Bernstein wrote: > LLVM is written in C++, so you'd need C++ support on plan 9 first. Probably > the easiest way to do that would be to add support for plan 9 binaries to > clang, and cross-compile llvm for plan 9 with itself. > > Yep. I was thinking a cross compile of clang to Plan 9 would be the starting point once LLVM is self-hosting (Is it?) > At least, that's the path I'd take if I was interested in trying. > Likewise. In the meantime it'd be nice to be able to build even just a cross compiler to target Plan 9 :-). Dave > > On Tue, 31 Aug 2010 09:10:42 -0700, David Leimbach > wrote: > > > I've seen a little bit of information about trying to go to LLVM for > > Inferno, and getting LLVM on Plan 9 natively (feasibility anyway), and I > was > > wondering if there's any official projects chasing this in earnest? > > > > Now that I've got an ARM and an x86 plan 9 instance up, I might have some > > time, but I can tell you compilers are definitely not my specialty :-). > > > > Dave > > > -- > Ori Bernstein > > --00163646d97772a2b7048f24eabd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Aug 31, 2010 at 1:59 PM, Ori Ber= nstein <ori@eige= nstate.org> wrote:
LLVM is written in C++, so you'd need C++ support on plan 9 first. Prob= ably
the easiest way to do that would be to add support for plan 9 binaries to clang, and cross-compile llvm for plan 9 with itself.


Yep. =A0I was thinking a cross compile= of clang to Plan 9 would be the starting point once LLVM is self-hosting (= Is it?)
=A0
At least, that's the path I'd take if I was interested in trying.

Likewise. =A0In the meantime it'd be= nice to be able to build even just a cross compiler to target Plan 9 :-).<= /div>

Dave
=A0

On Tue, 31 Aug 2010 09:10:42 -0700, David Leimbach <leimy2k@gmail.com> wrote:

> I've seen a little bit of information about trying to go to LLVM f= or
> Inferno, and getting LLVM on Plan 9 natively (feasibility anyway), and= I was
> wondering if there's any official projects chasing this in earnest= ?
>
> Now that I've got an ARM and an x86 plan 9 instance up, I might ha= ve some
> time, but I can tell you compilers are definitely not my specialty :-)= .
>
> Dave


--
=A0 =A0Ori Bernstein


--00163646d97772a2b7048f24eabd-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 31 Aug 2010 13:31:56 -0800 Message-ID: From: Nick LaForge To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4c238360-ead6-11e9-9d60-3106f5b1d025 >There's tutorials for doing so from O'Caml [http://llvm.org/docs/tutorial/] That looks really neat. I had watched this*: [http://vimeo.com/14313378] weeks back, subsequently flipping through Appel's "Modern Compiler Implementation in ML", but ultimately deciding the book to be too boring. This, on the other hand, is pretty inciting. However, I still couldn't bring myself to deal with an additional compiler as long as gcc+valgrind+qemu+vx32 continue to work. I also wouldn't touch LLVM before all the opportunities for synergy between lunix and Plan9 created by Golang are exhausted, and I think there are lots of them. (Is 9Go still unfinished even?) *Not really recommended because it is too long, though it did turn me on to the O'Caml language. >> Is this a trick to get C++ back on Plan9?? > was it ever? (Completely irrelevant to people living in 2010; cfront not guaranteed against causing brain hemorrhages) You can see B. Stroustrup's monitor prominently displaying either 8=C2=BD or Rio on the back of "The Design and Evolution of C++" (=C2=A91994 AT&T Bell Labs)... And: /n/sources/extra/c++.2e.tgz From mboxrd@z Thu Jan 1 00:00:00 1970 To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> In-reply-to: Your message of "Tue, 31 Aug 2010 14:03:41 PDT." References: <20100831165956.4790512c.ori@eigenstate.org> From: Bakul Shah Date: Tue, 31 Aug 2010 14:52:32 -0700 Message-Id: <20100831215232.B79505B89@mail.bitblocks.com> Subject: Re: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4c291974-ead6-11e9-9d60-3106f5b1d025 On Tue, 31 Aug 2010 14:03:41 PDT David Leimbach > On Tue, Aug 31, 2010 at 1:59 PM, Ori Bernstein wrote: > > > LLVM is written in C++, so you'd need C++ support on plan 9 first. Probably > > the easiest way to do that would be to add support for plan 9 binaries to > > clang, and cross-compile llvm for plan 9 with itself. > > > > > Yep. I was thinking a cross compile of clang to Plan 9 would be the > starting point once LLVM is self-hosting (Is it?) You can do this: $ clang -c -emit-llvm foo.c -o foo.bc # llvm format output $ llc -march=c foo.bc -o bar.c # C output No idea if the resulting .c file is compilable with plan9 C! For a real port you'd need to add plan9 a.out format support to llvm. Or add ELF support to plan9 :-) > Likewise. In the meantime it'd be nice to be able to build even just a > cross compiler to target Plan 9 :-). I am interested. From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 31 Aug 2010 15:21:02 -0700 Message-ID: From: David Leimbach To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=0015175cb8380eb9d0048f25ffd0 Subject: Re: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4c2e623a-ead6-11e9-9d60-3106f5b1d025 --0015175cb8380eb9d0048f25ffd0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well I'm interested in Go on Plan 9, but I'm also interested in other languages too, even one's people haven't written yet. LLVM seems like pretty decent toolkit for building them up. Dave On Tue, Aug 31, 2010 at 2:31 PM, Nick LaForge wrote= : > >There's tutorials for doing so from O'Caml > > [http://llvm.org/docs/tutorial/] > > That looks really neat. I had watched this*: > [http://vimeo.com/14313378] weeks back, subsequently flipping through > Appel's "Modern Compiler Implementation in ML", but ultimately > deciding the book to be too boring. This, on the other hand, is > pretty inciting. > > However, I still couldn't bring myself to deal with an additional > compiler as long as gcc+valgrind+qemu+vx32 continue to work. > > I also wouldn't touch LLVM before all the opportunities for synergy > between lunix and Plan9 created by Golang are exhausted, and I think > there are lots of them. (Is 9Go still unfinished even?) > > *Not really recommended because it is too long, though it did turn me > on to the O'Caml language. > > >> Is this a trick to get C++ back on Plan9?? > > > was it ever? > > (Completely irrelevant to people living in 2010; cfront not guaranteed > against causing brain hemorrhages) > > You can see B. Stroustrup's monitor prominently displaying either 8=BD > or Rio on the back of "The Design and Evolution of C++" (=A91994 AT&T > Bell Labs)... > > And: /n/sources/extra/c++.2e.tgz > > --0015175cb8380eb9d0048f25ffd0 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Well I'm interested in Go on Plan 9, but I'm also interested in oth= er languages too, even one's people haven't written yet.=A0
LLVM seems like pretty decent toolkit for building them up.

Dave

On Tue, A= ug 31, 2010 at 2:31 PM, Nick LaForge <nicklaforge@gmail.com> wrote:
>There's tutorials for doing so from O'Caml

[http://llvm.o= rg/docs/tutorial/]

That looks really neat. =A0I had watched this*:
[http://vimeo.com/1= 4313378] weeks back, subsequently flipping through
Appel's "Modern Compiler Implementation in ML", but ultimatel= y
deciding the book to be too boring. =A0This, on the other hand, is
pretty inciting.

However, I still couldn't bring myself to deal with an additional
compiler as long as gcc+valgrind+qemu+vx32 continue to work.

I also wouldn't touch LLVM before all the opportunities for synergy
between lunix and Plan9 created by Golang are exhausted, and I think
there are lots of them. =A0(Is 9Go still unfinished even?)

*Not really recommended because it is too long, though it did turn me
on to the O'Caml language.

>> Is this a trick to get C++ back on Plan9??

> was it ever?

(Completely irrelevant to people living in 2010; cfront not guaranteed
against causing brain hemorrhages)

You can see B. Stroustrup's monitor prominently displaying either 8=BD<= br> or Rio on the back of "The Design and Evolution of C++" (=A91994 = AT&T
Bell Labs)...

And: /n/sources/extra/c++.2e.tgz


--0015175cb8380eb9d0048f25ffd0-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: <20100831215232.B79505B89@mail.bitblocks.com> References: <20100831165956.4790512c.ori@eigenstate.org> <20100831215232.B79505B89@mail.bitblocks.com> Date: Tue, 31 Aug 2010 15:21:57 -0700 Message-ID: From: David Leimbach To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: multipart/alternative; boundary=90e6ba10a4755b824c048f2602c4 Subject: Re: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4c33acf4-ead6-11e9-9d60-3106f5b1d025 --90e6ba10a4755b824c048f2602c4 Content-Type: text/plain; charset=ISO-8859-1 On Tue, Aug 31, 2010 at 2:52 PM, Bakul Shah > wrote: > On Tue, 31 Aug 2010 14:03:41 PDT David Leimbach > > On Tue, Aug 31, 2010 at 1:59 PM, Ori Bernstein > wrote: > > > > > LLVM is written in C++, so you'd need C++ support on plan 9 first. > Probably > > > the easiest way to do that would be to add support for plan 9 binaries > to > > > clang, and cross-compile llvm for plan 9 with itself. > > > > > > > > Yep. I was thinking a cross compile of clang to Plan 9 would be the > > starting point once LLVM is self-hosting (Is it?) > > You can do this: > > $ clang -c -emit-llvm foo.c -o foo.bc # llvm format output > $ llc -march=c foo.bc -o bar.c # C output > > No idea if the resulting .c file is compilable with plan9 C! > For a real port you'd need to add plan9 a.out format support > to llvm. Or add ELF support to plan9 :-) > > > Likewise. In the meantime it'd be nice to be able to build even just a > > cross compiler to target Plan 9 :-). > > I am interested. > > I hadn't thought about that... interesting. --90e6ba10a4755b824c048f2602c4 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Aug 31, 2010 at 2:52 PM, Bakul S= hah <ba= kul+plan9@bitblocks.com> wrote:
On Tue, 31 Aug 2010 14:03:41 PDT David Leimbach <leimy2k@gmail.com>
> On Tue, Aug 31, 2010 at 1:59 PM, Ori Bernstein <ori@eigenstate.org> wrote:
>
> > LLVM is written in C++, so you'd need C++ support on plan 9 f= irst. Probably
> > the easiest way to do that would be to add support for plan 9 bin= aries to
> > clang, and cross-compile llvm for plan 9 with itself.
> >
> >
> Yep. =A0I was thinking a cross compile of clang to Plan 9 would be the=
> starting point once LLVM is self-hosting (Is it?)

You can do this:

$ clang -c -emit-llvm foo.c -o foo.bc =A0 # llvm format output
$ llc -march=3Dc foo.bc -o bar.c =A0 =A0 =A0 =A0 =A0# C output

No idea if the resulting .c file is compilable with plan9 C!
For a real port you'd need to add plan9 a.out format support
to llvm. Or add ELF support to plan9 :-)

> Likewise. =A0In the meantime it'd be nice to be able to build even= just a
> cross compiler to target Plan 9 :-).

I am interested.


I hadn't thought about that... interesting.=
--90e6ba10a4755b824c048f2602c4-- From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 In-Reply-To: References: Date: Tue, 31 Aug 2010 14:24:06 -0800 Message-ID: From: Nick LaForge To: Fans of the OS Plan 9 from Bell Labs <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Subject: Re: [9fans] LLVM for plan 9? Topicbox-Message-UUID: 4c394ba0-ead6-11e9-9d60-3106f5b1d025 oops, s/inciting/enticing/ (not quite the same thing... :-p)