Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cgo: add support for printf #4101

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from
Open

cgo: add support for printf #4101

wants to merge 3 commits into from

Commits on Jan 27, 2024

  1. builtins: update to LLVM 17 and add GENERIC_TF_SOURCES

    This updates the list of builtins to the one in LLVM 17 (which is our
    current version) and addes GENERIC_TF_SOURCES, which contains long
    double floating point builtins (80 bit, 128 bit, etc).
    
    This is needed for full printf support in the next commit.
    aykevl committed Jan 27, 2024
    Configuration menu
    Copy the full SHA
    2561f85 View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2024

  1. wasm: call __stdio_exit on exit

    This flushes stdio, so that functions like puts and printf write out all
    buffered data even if the output isn't connected to a terminal.
    
    For discussion, see:
    bytecodealliance/wasmtime#7833
    aykevl committed Feb 16, 2024
    Configuration menu
    Copy the full SHA
    90f79b9 View commit details
    Browse the repository at this point in the history

Commits on Feb 27, 2024

  1. cgo: add support for printf

    The C printf function is sometimes needed for C files included using
    CGo. This commit makes sure they're available on all systems where CGo
    is fully supported (that is, everywhere except on AVR).
    
    For baremetal systems using picolibc, I've picked the integer-only
    version of printf to save on flash size. We might want to consider
    providing a way to pick the floating point version instead, if needed.
    aykevl committed Feb 27, 2024
    Configuration menu
    Copy the full SHA
    4a88d20 View commit details
    Browse the repository at this point in the history