• Skip to main content
  • Skip to search
  • Skip to select language
MDN Web Docs
  • 参考手册
    • 概述 / Web 技术

      适用于开发者的 Web 技术参考手册

    • HTML

      Web 内容的结构

    • CSS

      用于描述文档样式的代码

    • JavaScript

      通用脚本语言

  • 开发指南
    • 概述 / MDN 学习区

      学习 Web 开发

    • MDN 学习区

      学习 Web 开发

    • HTML

      学习使用 HTML 构建 Web 内容

    • CSS

      学习使用 CSS 设置内容样式

    • JavaScript

      学习在浏览器中运行脚本

  • 更多中文网
  1. WebAssembly
  2. WebAssembly instruction reference
  3. WebAssembly control flow instructions
  4. call

目录

  • Try it
  • Syntax
  • See also
  1. WebAssembly home page
  2. Tutorials
    1. WebAssembly concepts
    2. Compiling from C/C++ to WebAssembly
    3. Compiling from Rust to WebAssembly
    4. Using the WebAssembly JavaScript API
    5. Understanding WebAssembly text format
    6. Converting WebAssembly text format to wasm
    7. Loading and running WebAssembly code
    8. Exported WebAssembly functions
  3. JavaScript interface
    1. WebAssembly
    2. WebAssembly.Module
    3. WebAssembly.Global
    4. WebAssembly.Instance
    5. WebAssembly.Memory
    6. WebAssembly.Table
    7. WebAssembly.Tag
    8. WebAssembly.Exception
    9. WebAssembly.CompileError
    10. WebAssembly.LinkError
    11. WebAssembly.RuntimeError

目录

  • Try it
  • Syntax
  • See also

call

call calls a function, return_call being the tail-call version of it. call_indirect calls a function in a table with the return_call_indirect tail-call version as well.

Try it

Syntax

wasm
call $greet
Instruction Binary opcode
call 0x10
call_indirect 0x11
return_call 0x12
return_call_indirect 0x13

See also

  • Tail Call Extension proposal overview
  • V8 on WebAssembly tail calls support
MDN Web 中文网 - 粤ICP备13048890号