From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 18 Apr 2010 01:22:43 -0600 To: "Fans of the OS Plan 9 from Bell Labs" <9fans@9fans.net>, "Joel C. Salomon" From: "EBo" Message-ID: In-Reply-To: References: <20100416115756.GA1107@polynum.com> <4BC855DF020000CC00026A46@wlgw07.wlu.ca> <004001cadd84$7254c4a0$56fe4de0$@gmail.com> <000301cadd8e$0dd7c720$29875560$@gmail.com> <4BC870C8020000CC00026AD9@wlgw07.wlu.ca> <4BC87A44020000CC00026B30@wlgw07.wlu.ca> <4BC8A814020000CC00026BC9@wlgw07.wlu.ca>, <4BC8A814020000CC00026BC9@wlgw07.wlu.ca> Subject: [9fans] C++ support [was: TeX: hurrah!] Topicbox-Message-UUID: 06eca66e-ead6-11e9-9d60-3106f5b1d025 > 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-converter/ http://cboard.cprogramming.com/c-programming/106880-there-any-up-date-cplusplus-c-converter.html 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 --