7.7
2 FFI Utilities
(require asm/ffi) | package: asm |
procedure
(alloc/exec size) → bytes?
size : exact-integer?
Allocates size bytes of executable memory.
procedure
(bytes->proc bs type) → procedure?
bs : bytes? type : ctype?
Converts the assembled machine code in bs
to a
native procedure with type type.
procedure
(object->proc obj type) → procedure?
obj : bin:object? type : ctype?
Converts the assembled object obj to a native
procedure with type type.