|#lang superc||package: superc|
This package provides a language for writing integrated C and Racket, it uses the Scribble reader.
There are a few examples in the source of this package in the "tests/superc" directory.
A Super C program may contain any number of the following calls:
(c expr ...)
Each C block is appended together to construct the C source.
(cflags expr ...)
Each set of flags is appended together to construct the C flags.
(ldflags expr ...)
Each set of flags is appended together to construct the LD flags.
The C portion of the Super C program is compiled and linked by GCC with the following flags:
gcc cflags -fPIC -c c-source -o object-file
gcc -shared ldflags object-file -o dylib-file
Warning: Super C is unsafe by nature and only tested on Linux with GCC.