[llvm-commits] CVS: llvm/docs/FAQ.html

Reid Spencer reid at x10sys.com
Wed Apr 26 07:52:43 PDT 2006

Changes in directory llvm/docs:

FAQ.html updated: 1.31 -> 1.32
Log message:

Add some notes about the current state of source (front end) languages 
so we can point to them on llvm-dev.

Diffs of the changes:  (+44 -1)

 FAQ.html |   45 ++++++++++++++++++++++++++++++++++++++++++++-
 1 files changed, 44 insertions(+), 1 deletion(-)

Index: llvm/docs/FAQ.html
diff -u llvm/docs/FAQ.html:1.31 llvm/docs/FAQ.html:1.32
--- llvm/docs/FAQ.html:1.31	Mon Mar 13 23:39:39 2006
+++ llvm/docs/FAQ.html	Wed Apr 26 09:52:19 2006
@@ -55,6 +55,13 @@
+  <li><a href="#felangs">Source Languages</a>
+  <ol>
+    <li><a href="#langs">What source languages are supported?</a></li>
+    <li><a href="#langhlsupp">What support is there for higher level source
+      language constructs for building a compiler?</a></li>
+  </ol>
   <li><a href="#cfe">Using the GCC Front End</a>
@@ -385,6 +392,42 @@
 <!-- *********************************************************************** -->
 <div class="doc_section">
+  <a name="felangs">Source Languages</a>
+<div class="question"><p>What source languages are supported?</p></div>
+<div name="langs" class="answer">
+  <p>LLVM currently has full support for C and C++ source languages. These are
+  available through a special version of GCC that LLVM calls the 
+  <a href="#cfe">C Front End</a></p>
+  <p>There is an incomplete version of a Java front end available in the
+  <tt>llvm-java</tt> CVS repository. There is no documentation on this yet so
+  you'll need to download the code, compile it, and try it.</p>
+  <p>In the <tt>examples/BFtoLLVM</tt> directory is a translator for the 
+  BrainF*** language (2002 Language Specification).</p>
+  <p>In the <tt>projects/Stacker</tt> directory is a compiler and runtime
+  library for the Stacker language, a "toy" language loosely based on Forth.</p>
+  <p>The PyPy developers are working on integrating LLVM into the PyPy backend
+  so that PyPy language can translate to LLVM.</p>
+<div name="langhlsupp" class="question">
+  <p>What support is there for a higher level source language constructs for 
+  building a compiler?</p>
+<div class="answer">
+  <p>Currently, there isn't much. LLVM supports an intermediate representation
+  which is useful for code representation but will not support the high level
+  (abstract syntax tree) representation needed by most compilers. There are no
+  facilities for lexical nor semantica analysis. There is, however, a <i>mostly
+    implemented</i> configuration-driven 
+  <a href="CompilerDriver.html">compiler driver</a> which simplifies the task
+  of running optimizations, linking, and executable generation.</p>
+  <p>You might be interested in following the progress of the <a
+    href="http://hlvm.org">HLVM Project</a> which is attempting to address these
+  issues.</p>
+<!-- *********************************************************************** -->
+<div class="doc_section">
   <a name="cfe">Using the GCC Front End</a>
@@ -574,7 +617,7 @@
   src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
   <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2006/03/14 05:39:39 $
+  Last modified: $Date: 2006/04/26 14:52:19 $

More information about the llvm-commits mailing list