Continuation-passing in C?

Chris Torek torek at elf.ee.lbl.gov
Fri Mar 29 03:58:41 AEST 1991


In article <1991Mar28.070649.1667 at visix.com> adam at visix.com writes:
>How can I (efficiently) program in a continuation-passing style in C?
>
>This breaks down into two basic questions:
>
>(1) How do I explicitly jump across functions
>(2) How do I keep things in registers across functions

The answers are (1) use assembly language, and (2) use assembly language.

If you want this level of control over the machine, C is not the place
to look.  Compilers capable of this sort of optimization are rare.
-- 
In-Real-Life: Chris Torek, Lawrence Berkeley Lab CSE/EE (+1 415 486 5427)
Berkeley, CA		Domain:	torek at ee.lbl.gov



More information about the Comp.lang.c mailing list