Difference between revisions of "Ccall"

From Clean
Jump to: navigation, search
(Started reference docs for ccall)
(No difference)

Latest revision as of 20:28, 9 April 2009

To call foreign functions in Clean you need to make use of the "ccall" abc instruction. This ccall abc construction calls the foreign function with the parameters on the stack.

Ccall format cheatsheet

  • I : Int
  • A : Array
  • V : Tuple
  • R : Real
  • s : String