C

The Function Pointer Tutorials

http://www.newty.de/fpt/index.html

The 90 Minute Scheme to C compiler

Marc showed us how to write a simple Scheme to C compiler, in Scheme. In only 90 minutes! And although not supporting the whole Scheme standard, the compiler supports fully optimized proper tail calls, continuations, and (of course) full closures. The compiler is implemented using two important compilation techniques for functional languages: closure conversion and CPS-conversion.

libscheme: Scheme as a C Library

Because of its small size and simplicity, Scheme is often seen as an ideal extension or scripting language. While there are many Scheme implementations available, their interfaces are often complex and can get in the way of using the implementation as part of a larger software product. The libscheme library makes the Scheme language available as a C library. Its interface is through a single C header file and it is easily extended with new primitive procedures, new primitive types, and new syntax.

Coroutines in C

Structuring a large program is always a difficult job. One of the particular problems that often comes up is this: if you have a piece of code producing data, and another piece of code consuming it, which should be the caller and which should be the callee?

Continuations in C

A continuation is essentially the state of a process at any moment in time. At any point during execution you can think of it as an extra hidden argument that's always implicitly referred to in your code. We take it for granted that the current state of an executing system is available for our use and so we usually aren't aware it's there at all.

Programming in C

Introductory Level Book on C Programming

Mastering recursive programming

Recursion is a tool not often used by imperative language developers, because it is thought to be slow and to waste space, but as the author demonstrates, there are several techniques that can be used to minimize or eliminate these problems. He introduces the concept of recursion and tackle recursive programming patterns, examining how they can be used to write provably correct programs. Examples

C and C++ books for free downloads

C and C++ books for free downloads

Writing Bug-Free C Code

Writing Bug-Free C Code
A Programming Style That Automatically Detects Bugs in C Code
by Jerry Jongerius / January 1995

A minimal Lisp interpreter

A minimal Lisp interpreter written in C

Syndicate content