~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to callback/trampoline_r/README

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
This directory contains a reentrant version of the trampoline package.
 
2
 
 
3
Instead of clobbering a global variable, a pointer to data0,data1,...
 
4
is passed to the called function in a special CPU register.
 
5
 
 
6
The number of supported data words (data0,data1) is arbitrary; 3 or 4
 
7
or more would work as well if trampoline.c was modified appropriately.
 
8
Two words are needed, however, for passing closures through vacall_r
 
9
without an additional malloc() call per closure.
 
10
 
 
11
The include file <trampoline.h> is renamed to <trampoline_r.h>.
 
12