Ccall

From Clean
Jump to navigationJump to search

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