extern "c"
语法
extern "c" 声明使用 C ABI 的外部函数或定义。
语义
它把语言内的调用约定与 C ABI 对齐。
边界
需要单独明确:
- 参数与返回值类型限制
- layout 与
cstr/Ptr[T]/CBI的关系
这里集中展示 CHIBA level-1 specification,覆盖 core language、control flow、memory、patterns、IR lowering 与 package system 等实现边界。
The docs surface keeps CHIBA level-1 specification pages browsable inside the site, with direct paths into language, control flow, memory, pattern, and lowering rules.
extern "c"extern "c" 声明使用 C ABI 的外部函数或定义。
它把语言内的调用约定与 C ABI 对齐。
需要单独明确:
cstr / Ptr[T] / CBI 的关系