From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@9fans.net Date: Mon, 19 Apr 2010 08:34:17 +0000 From: staalmannen Message-ID: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable References: Subject: Re: [9fans] C++ support [was: TeX: hurrah!] Topicbox-Message-UUID: 08cd6586-ead6-11e9-9d60-3106f5b1d025 http://man.cat-v.org/plan_9_contrib/1/c++ I am not sure whether this c++ support for plan9 is for real or not because I have never seen anything about it and I do not know whether it would be able to compile LLVM/Clang itself.... Apparently LLVM does not use some of the "stranger" parts of C++ (see answer in LLVM-dev thread below). Porting C++ code via LLVM to BC and back to C on a platform supporting C++ for later compilation on Plan9 does apparently not work. http://groups.google.com/group/llvm-dev/browse_thread/thread/856e02bc5b106168/2ef4822397e361ec?hl=sv&ie=UTF-8&q=llvm+plan9#2ef4822397e361ec I am personally just a layman interested in stuff so I often come with these very stupid questions. I have seen that there are people interested in trying to port this to Plan9 though so I guess those (much smarter) people must have thought of a way to get out of the hen- and-egg problem. On 18 Apr, 09:28, e...@sandien.com (EBo) wrote: > > The lack of C++ is going to hinder efforts to port these projects to > > Plan 9 as-is; and these are significant efforts, not likely to be > > duplicated by 9fans.  (Perhaps the C++ library for PDF handling can be > > rewritten in C, and then XeTeX & LuaTeX can be ported.  But don't > > expect the projects to use the rewrite in favor of the original > > libraries.) > > In the spirit of offering possible useful information while not being in the > slightest bit interested in either porting a compiler or writing a converter > at this time, I had the thought "why not write a C++ to C converter" like the > old f2c I used back before g77/g95 came out.  In anticipation of another flame > drizzle, I am not reading these threads thinking that everyone is asking me to > write these things for them, nor are my contributions necessarily asking > others to develop such projects for me.  When I have written my own posts it > was intended to ask if anyone has done this, something similar, or even tried > it.  I like orienting myself a little before spending hundreds of hours -- > only to find that I have reinvented the wheel. > > I poked around a little and found the following info: > > http://www.programmersheaven.com/mb/CandCPP/82212/82212/c++-to-c-conv...http://cboard.cprogramming.com/c-programming/106880-there-any-up-date... > > apparently LLVM can be used to convert C++ to C; I had not know that: >  http://llvm.org/docs/FAQ.html#translatecxx > > I remember seeing someone interested in porting LLVM to Plan 9.  Maybe that > would help get you going. > >   EBo --