File: README

package info (click to toggle)
ffcall 2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,024 kB
  • sloc: asm: 100,607; ansic: 50,932; sh: 5,630; makefile: 1,588; cpp: 2
file content (12 lines) | stat: -rw-r--r-- 528 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
This directory contains a reentrant version of the trampoline package.

Instead of clobbering a global variable, a pointer to data0,data1,...
is passed to the called function in a special CPU register.

The number of supported data words (data0,data1) is arbitrary; 3 or 4
or more would work as well if trampoline.c was modified appropriately.
Two words are needed, however, for passing closures through vacall_r
without an additional malloc() call per closure.

The include file <trampoline.h> is renamed to <trampoline_r.h>.