1 USING: alien alien.libraries compiler.cfg.builder help.markup
2 help.syntax literals make multiline sequences stack-checker.alien
4 IN: compiler.cfg.builder.alien
7 STRING: ex-caller-return
8 USING: compiler.cfg.builder.alien make prettyprint ;
10 T{ ##alien-invoke { reg-outputs { { 1 int-rep RAX } } } } ,
11 T{ alien-invoke-params { return pointer: void } } caller-return
14 T{ ##alien-invoke { reg-outputs { { 1 int-rep RAX } } } }
15 T{ ##box-alien { dst 116 } { src 1 } { temp 115 } }
22 { "params" alien-node-params }
26 { $description "This word gets the name and library to use when linking to a function in a dynamically loaded dll. It is assumed that the library exports the undecorated name, regardless of calling convention." } ;
29 { $values { "params" alien-node-params } }
30 { $description "If the last alien call returns a value, then this word will emit an instruction to the current sequence being constructed by " { $link make } " that boxes it." }
31 { $examples { $unchecked-example $[ ex-caller-return ] } } ;
34 { $values { "symbol" string } { "library" library } }
35 { $description "Checks that a symbol with the given name exists in the given library. Throws an error if not." } ;
37 HELP: unbox-parameters
38 { $values { "parameters" sequence } { "vregs" sequence } { "reps" sequence } }
39 { $description "Unboxes a sequence of parameters to send to an ffi function." } ;
41 ARTICLE: "compiler.cfg.builder.alien"
42 "CFG node emitter for alien nodes"
43 "The " { $vocab-link "compiler.cfg.builder.alien" } " vocab implements " { $link emit-node } " methods for alien nodes." ;
45 ABOUT: "compiler.cfg.builder.alien"