This document is a work in progress, and is primarily concerned with getting Rust code able to talk with C code. What we cover here is writing 'bindings', we will cover 'wrapping' up the bindings and providing an elegant interface in the next document.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Red [] | |
forth: context [ | |
prog: [1 2 3 4 5 6 7 8 '+ '+ '* 150 '+ '* '+ '* '*] | |
registers: ['eax 'ebx 'ecx 'edx] | |
register-taint: [] ; registers we've touched in this set | |
register-goop: [] ; registers we need to pop to use | |
register-sets: 0 | |
next-register: head registers |