Skip to content

feature_libc

Functions:

build_libc_runtime_feature

build_libc_runtime_feature() -> RuntimeFeature
Source code in src/irx/runtime/feature_libc.py
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
def build_libc_runtime_feature() -> RuntimeFeature:
    """
    title: Build the libc runtime feature specification.
    returns:
      type: RuntimeFeature
    """
    return RuntimeFeature(
        name="libc",
        symbols={
            "exit": ExternalSymbolSpec("exit", _declare_exit),
            "malloc": ExternalSymbolSpec("malloc", _declare_malloc),
            "puts": ExternalSymbolSpec("puts", _declare_puts),
            "snprintf": ExternalSymbolSpec("snprintf", _declare_snprintf),
        },
    )