Home
Reading
Searching
Subscribe
Sponsors
Statistics
Posting
Contact
Spam
Lists
Links
About
Hosting
Filtering
Features Download
Marketing
Archives
FAQ
Blog
 
Gmane
From: Pekka Enberg <penberg <at> kernel.org>
Subject: [ANNOUNCE] LLVM backend for Sparse
Newsgroups: gmane.comp.parsers.sparse
Date: Sunday 28th August 2011 06:08:40 UTC (over 6 years ago)
Hi everyone,

Jeff Garzik and myself have been hacking on LLVM backed for Sparse. The
sources
are available on Github:

   git clone git://github.com/penberg/sparse-llvm.git

You can use sparse-llvm with the 'sparsec' shells script provided in the
source
tree. It has a GCC compatible command line interface and uses GCC for
linking.
For example, you can try to build sparse with sparse-llvm like this:

   make CC=sparsec

Developers who are interested in looking at the LLVM output can use the
'sparse-llvm' command as follows:

   sparse-llvm foo.c | llvm-dis

The backend is already capable of generating code for simple C code on
various
platforms. Supported C features include:

   * Function calls

   * Switch statements

   * if-else statements

   * Arithmetic operations

   * Bitwise operations

   * Floating point arithmetic

There's many features that are not supported so if you see an error message
such as this while compiling a C file:

   sparse-llvm: sparse-llvm.c:165: pseudo_type: Assertion `0' failed.

don't panic because it simply means you're attempting to use an unsupported
feature. Help implementing them is more than welcome!

 			Pekka
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
 
CD: 4ms