Skip to main content

Module abi

Module abi 

Source
Expand description

Common ABI trait and utilities for code generation backends.

This module defines a trait that all ABI implementations must follow, reducing code duplication and providing a consistent interface.

Traits§

Abi
Trait defining the common interface for all ABI implementations.

Functions§

common_call_stub
Helper function to create a common call_stub implementation.
get_free_symbol
Helper function to get the platform-specific free symbol name.
get_malloc_symbol
Helper function to get the platform-specific malloc symbol name.
get_printf_symbol
Helper function to get the platform-specific printf symbol name.
mangle_macos_name
Helper function to mangle function names for macOS (adds underscore prefix).