@hackage language-c0.6
Analysis and generation of C code
Installation
Tested Compilers
Dependencies (9)
- array
- base <3
- bytestring >=0.9.0
- containers
- directory
- filepath Show all…
Dependents (22)
@hackage/afv, @hackage/cil, @hackage/c-dsl, @hackage/c2hs, @hackage/acme-everything, @hackage/clua, Show all…
Package Flags
splitbase
(on by default)
Choose the new smaller, split-up base package.
usebytestrings
(on by default)
Use ByteString as InputStream datatype
separatesyb
(on by default)
Data.Generics available in separate package.
allwarnings
(off by default)
Turn on all warnings for building (development)
= Language.C =
Language.C is a parser and pretty-printer framework for C11 and the extensions of gcc.
See http://visq.github.io/language-c/
== Build and Install ==
cabal install
-- or --
runhaskell Setup.hs configure FLAGS runhaskell Setup.hs build runhaskell Setup.hs install
Provide the set of flags passing
--flags="
== Compatibility ==
Tested with ghc-7.10.3 (Linux). It is recommended to use the most recent platform release: http://hackage.haskell.org/platform/.
== C Language Compatibility ==
Currently unsupported C11 constructs:
- static assertion 6.7.10 (_Static_assert)
- generic selection 6.5.1.1 (_Generic)
- _Atomic, _Alignas, _Thread_local
- Universal character names
Currently unsupported GNU C extensions:
- __auto_type
- __float128
- __builtin_offsetof char a[__builtin_offsetof (struct S, sa->f)
- _Decimal32
- Extended assembler asm volatile ("" : : : ); asm goto ("" : : : : label);
== Sources ==
see src/README
== Examples ==
A couple of small examples are available in /examples
== Testing ==
A couple of regression tests can be run via
cd test/harness; make
For more tests, see test/README.