Debian Codegraph @

lib/mlrisc-lib/MLRISC/c-call/README

raw
1 C calls for MLRISC
2 Mike Rainey ([email protected])
3
4 This library implements C calls for several architectures and operating systems. For calling
5 conventions, we depend on the Staged Allocation library.
6
7 We support both fixed- and variable-arity C calling sequences. For the fixed-arity case, we
8 generate MLRISC instructions for the calling sequence. For the variable-arity case, we must
9 use more elaborate techniques. The basic idea is to use an interpreter at runtime to carry
10 out the calling sequence. Our ML Workshop paper contains the specifics.
11
12 * Calling variadic functions from a strongly typed language - http://cs.uchicago.edu/~mrainey/ml-varargs.pdf
13
14 Layout:
15
16 * archs - support for different architectures and operating systems
17 * gen - architecture-independent code
18 * test - testing infrastructure
19 * varargs - variable arity C calls
20 * gen - generates located-arguments and calls the runtime interpreter
21 * interp - runtime interpreter
22