# Libc

Published articles for Libc.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## In the Hole

DevFeed: [In the Hole](<https://devfeed.tech/articles/in-the-hole-129684.md>)

Original publisher: [Read original article](<https://thedailywtf.com/articles/in-the-hole>)

Author: Remy Porter

Published: 2026-11-11T06:30:00Z

Content type: article

Language: en

Sources: [The Daily WTF](<https://devfeed.tech/sources/the-daily-wtf.md>)

Topics: [Error Handling](<https://devfeed.tech/topics/error-handling.md>), [Fuzzing/Fuzz testing](<https://devfeed.tech/topics/fuzzing.md>), [hosting](<https://devfeed.tech/topics/hosting.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [alpine](<https://devfeed.tech/tags/alpine.md>), [container](<https://devfeed.tech/tags/container.md>), [exploited](<https://devfeed.tech/tags/exploited.md>), [feature-articles](<https://devfeed.tech/tags/feature-articles.md>), [glibc](<https://devfeed.tech/tags/glibc.md>), [libc](<https://devfeed.tech/tags/libc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [musl](<https://devfeed.tech/tags/musl.md>), [security](<https://devfeed.tech/tags/security.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [sshole](<https://devfeed.tech/tags/sshole.md>)

### AI overview

The excerpt describes an SSH authentication flaw on some Linux systems: passwords longer than 256 characters can trigger a failed hash that lets a passwordless account authenticate. The account check compares the returned hash with the stored value. In glibc, `crypt` reports invalid input with `NULL`; in musl, it returns `*`, the same value commonly used in `/etc/shadow` or `/etc/passwd` to disable password access. The text says this affects musl-based systems such as Alpine, including containers, and reports that the flaw is being exploited. It attributes the failure to the interaction between musl's error return, the stored marker, and a password-length cap. The supplied excerpt ends before the article's full discussion.

### Source excerpt

Look, I don't want to keep talking about security issues. Blame AI. Just another thing it ruined. At this point, you've probably heard about *sshole. If you haven't, the quick summary: on some Linux systems, SSH will log you in to an account with no password if you supply a password greater than 256 characters long. Frequently, you might make accounts like root nominally inaccessible by giving it no password, so this is a big deal. Worse, it impacts varieties of Linux that use the musl implementation of libc, like Alpine- the kinds of varieties that run inside a container hosting a web app somewhere. The impact is broad, and is definitely being exploited. The root cause, however, is interesting, because it's a sum of very simple choices that lead to a wildly undesirable result. The core function in question is crypt, a stardard part of the C library. crypt is already not the best name, as it's a hashing function, but its behavior is pretty clear. Pass it a string and a salt, and it gives you a hashed version of the password suitable for storing in your /etc/shadow file. Now, the man page has the answer to the important question: what happens when I hand the function invalid inputs, like a bad salt? In the glibc implementation, it returns a NULL. That's a pretty standard C-style method of handling errors: I failed to do the thing, so I'm going to return a NULL value. This puts the onus on the callers to correctly handle the NULL (which also handles the error). glibc isn't the only implementation of libc, though. There are many others, each tuned to different types of runtime environments. For example, uClibC is a minimal implementation specifically designed to make lightweight executables that can run in resource constained environments. It makes tradeoffs that make it less desirable for a desktop or server environment. musl attempts to do both: be lightweight and suitable for embedded environments and also suitable for server environments. This makes musl a great ch

## AlpineBSD Announced - an AI-free FOSS OS

DevFeed: [AlpineBSD Announced - an AI-free FOSS OS](<https://devfeed.tech/articles/alpinebsd-announced-an-ai-free-foss-os-122335.md>)

Original publisher: [Read original article](<https://bsd.slashdot.org/story/26/11/08/0044219/alpinebsd-announced---an-ai-free-foss-os>)

Author: EditorDavid

Published: 2026-11-08T00:46:00Z

Content type: article

Language: en

Sources: [Slashdot](<https://devfeed.tech/sources/slashdot.md>)

Topics: [free software](<https://devfeed.tech/topics/free-software.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Large Language Model](<https://devfeed.tech/topics/llm.md>)

Tags: [ai](<https://devfeed.tech/tags/ai.md>), [ai-generated-code](<https://devfeed.tech/tags/ai-generated-code.md>), [ai-models](<https://devfeed.tech/tags/ai-models.md>), [ai-policy](<https://devfeed.tech/tags/ai-policy.md>), [alpine](<https://devfeed.tech/tags/alpine.md>), [alpine-linux](<https://devfeed.tech/tags/alpine-linux.md>), [bsd](<https://devfeed.tech/tags/bsd.md>), [code](<https://devfeed.tech/tags/code.md>), [foss](<https://devfeed.tech/tags/foss.md>), [free](<https://devfeed.tech/tags/free.md>), [generative-ai](<https://devfeed.tech/tags/generative-ai.md>), [libc](<https://devfeed.tech/tags/libc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llms](<https://devfeed.tech/tags/llms.md>), [manager](<https://devfeed.tech/tags/manager.md>), [media](<https://devfeed.tech/tags/media.md>), [need](<https://devfeed.tech/tags/need.md>), [netbsd](<https://devfeed.tech/tags/netbsd.md>), [os](<https://devfeed.tech/tags/os.md>), [unix](<https://devfeed.tech/tags/unix.md>)

### AI overview

AlpineBSD combines the NetBSD kernel and libc with a port of the Alpine Linux userland, and its policy treats software or assets containing any generative AI output as tainted. The excerpt says the project is very new: it has no installation media, though a manual bootstrap is possible. It also notes difficulty using pkgin, an optional package manager; some NetBSD users reportedly prefer compiling software from source. The excerpt describes the project's stated direction and early limitations, not a mature or readily installable operating system.

### Source excerpt

Lproven (Slashdot reader #6,030) shares his article about a new OS in the BSD family "combining NetBSD's kernel and libc with a port of the Alpine Linux userland" -- and promising it won't use AI-generated code: AlpineBSD is so new that it barely exists yet. There are no installation media available, though it's possible to manually bootstrap an installation. What AlpineBSD does already have is an AI policy, and the plan is to avoid "the output of generative AI models (e.g. LLMs)" as far as possible: "Any software whose code, documentation, binaries, or other assets include, in any part, the output of a generative AI tool such as an LLM, is considered 'tainted' for our purposes...." Back in 2024, the NetBSD project made its position on AI plain. Its commit guidelines say that "code generated by a Large Language Model [...] is presumed to be tainted code...." AlpineBSD's ports repository and source code are hosted on Sourcehut, under the account of sircmpwn, better known as Drew DeVault... We will follow AlpineBSD with interest. There's strong appeal in the plan of combining perhaps the best-known, longest-established AI-free Unix-like kernel with the user-facing parts of pretty much the smallest and cleanest Linux distro there is. The AI advocates often warn LLM skeptics that they risk being left behind. Well, here's an OS for those who don't want to surf the AI wave. The article does acknowledge difficulty installing software using the pkgin package manager (an optional extra), explaining that since 1993 the NetBSD community has had "its own ideas about what is normal... Some folks on the mailing list told us that they never use binary packages anyway -- they compile what they need from source code." Read more of this story at Slashdot.

## OpenSSH Rushes Patches for 'SSHole' Authentication Bypass

DevFeed: [OpenSSH Rushes Patches for 'SSHole' Authentication Bypass](<https://devfeed.tech/articles/openssh-rushes-patches-for-sshole-authentication-bypass-121197.md>)

Original publisher: [Read original article](<https://www.securityweek.com/openssh-rushes-patches-for-sshole-authentication-bypass/>)

Author: Ionut Arghire

Published: 2026-11-06T12:07:42Z

Content type: news

Language: en

Sources: [SecurityWeek](<https://devfeed.tech/sources/securityweek.md>)

Topics: [OpenSSH](<https://devfeed.tech/topics/openssh.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [patches](<https://devfeed.tech/topics/patches.md>), [ssh](<https://devfeed.tech/topics/ssh.md>)

Tags: [alpine](<https://devfeed.tech/tags/alpine.md>), [alpine-linux](<https://devfeed.tech/tags/alpine-linux.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [authentication-bypass](<https://devfeed.tech/tags/authentication-bypass.md>), [bypass](<https://devfeed.tech/tags/bypass.md>), [cve](<https://devfeed.tech/tags/cve.md>), [cve-2026-123158](<https://devfeed.tech/tags/cve-2026-123158.md>), [cvss](<https://devfeed.tech/tags/cvss.md>), [cvss-score](<https://devfeed.tech/tags/cvss-score.md>), [featured](<https://devfeed.tech/tags/featured.md>), [libc](<https://devfeed.tech/tags/libc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [musl](<https://devfeed.tech/tags/musl.md>), [openssh](<https://devfeed.tech/tags/openssh.md>), [pam](<https://devfeed.tech/tags/pam.md>), [password](<https://devfeed.tech/tags/password.md>), [patches](<https://devfeed.tech/tags/patches.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [sshole](<https://devfeed.tech/tags/sshole.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>)

### AI overview

SSHole (CVE-2026-123158) can let an attacker reach certain accounts on OpenSSH servers running musl libc without PAM by supplying a 257-1,024-character password. The excerpt attributes the flaw to password-hash interpretation and says it is exploitable through sshd, though the defect is not in sshd itself. On Alpine, exploitation requires password authentication to be enabled, an account with a "*" password field, and another local account with a $5$ or $6 password hash; the article reports affected releases from 3.16 through 3.24 and edge. OpenSSH 10.6p2 includes fixes. Alpine advises applying the patches and restarting sshd, or disabling password logins and restarting it. The excerpt says no exploitation reports had been seen at publication, while researchers expected attempts because the attack needs only one connection.

### Source excerpt

On Linux distributions using musl libc without PAM, some accounts accept any password between 257 and 1024 characters. The post OpenSSH Rushes Patches for 'SSHole' Authentication Bypass appeared first on SecurityWeek.

## Critical security vulnerability affects OpenSSH on Alpine Linux systems

DevFeed: [Critical security vulnerability affects OpenSSH on Alpine Linux systems](<https://devfeed.tech/articles/critical-security-vulnerability-affects-openssh-on-alpine-linux-systems-118873.md>)

Original publisher: [Read original article](<https://lwn.net/Articles/1105464/>)

Author: jzb

Published: 2026-11-05T11:39:10Z

Content type: news

Language: en

Sources: [LWN.net](<https://devfeed.tech/sources/lwn-net.md>)

Topics: [Vulnerabilities](<https://devfeed.tech/topics/vulnerabilities.md>), [OpenSSH](<https://devfeed.tech/topics/openssh.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [2022](<https://devfeed.tech/tags/2022.md>), [alpine](<https://devfeed.tech/tags/alpine.md>), [alpine-linux](<https://devfeed.tech/tags/alpine-linux.md>), [authentication](<https://devfeed.tech/tags/authentication.md>), [backporting](<https://devfeed.tech/tags/backporting.md>), [bug](<https://devfeed.tech/tags/bug.md>), [critical](<https://devfeed.tech/tags/critical.md>), [critical-vulnerability](<https://devfeed.tech/tags/critical-vulnerability.md>), [glibc](<https://devfeed.tech/tags/glibc.md>), [libc](<https://devfeed.tech/tags/libc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mitigation](<https://devfeed.tech/tags/mitigation.md>), [musl](<https://devfeed.tech/tags/musl.md>), [openssh](<https://devfeed.tech/tags/openssh.md>), [pam](<https://devfeed.tech/tags/pam.md>), [password](<https://devfeed.tech/tags/password.md>), [security](<https://devfeed.tech/tags/security.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [vulnerability](<https://devfeed.tech/tags/vulnerability.md>), [workaround](<https://devfeed.tech/tags/workaround.md>)

### AI overview

OpenSSH 10.6p2 provides a workaround for a critical vulnerability affecting Linux systems that use musl libc with PAM disabled, including Alpine Linux. OpenSSH developer Damien Miller advised operators to set `PasswordAuthentication=no` or disable SSH immediately on those systems. The source says the vulnerability does not affect non-Linux systems, Linux systems using glibc, or Linux systems using PAM for password authentication. OpenSSH describes the root cause as outside OpenSSH itself. Alpine Linux plans to backport the fix to releases as far back as Alpine 3.16, released in May 2022.

### Source excerpt

Version 10.6p2 of OpenSSH has been released with a workaround for a critical vulnerability that affects Linux systems that use musl libc with PAM disabled, such as Alpine Linux. OpenSSH developer Damien Miller said: If you operate a Linux system that uses musl libc without PAM (Alpine Linux is one example) then stop reading and set PasswordAuthentication=no or disable SSH for these systems IMMEDIATELY. This vulnerability does not exist on non-Linux systems, Linux/glibc systems and Linux systems that use PAM for password authentication. We consider the root cause of this bug to be outside OpenSSH itself, but we're in a good position to deliver a mitigation quickly. The Alpine Linux project has announced that it will be backporting the OpenSSH fix "all the way back to Alpine 3.16", which was released in May 2022.

## Systemd Wants Rust in, But its Core Will Have to Wait

DevFeed: [Systemd Wants Rust in, But its Core Will Have to Wait](<https://devfeed.tech/articles/systemd-wants-rust-in-but-its-core-will-have-to-wait-118783.md>)

Original publisher: [Read original article](<https://feed.itsfoss.com/link/24361/17515808/systemd-rust-support>)

Author: Sourav Rudra

Published: 2026-11-05T10:12:32Z

Content type: news

Language: en

Sources: [It's FOSS](<https://devfeed.tech/sources/it-s-foss.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>)

Tags: [abi](<https://devfeed.tech/tags/abi.md>), [box](<https://devfeed.tech/tags/box.md>), [c](<https://devfeed.tech/tags/c.md>), [certificates](<https://devfeed.tech/tags/certificates.md>), [core](<https://devfeed.tech/tags/core.md>), [coreutils](<https://devfeed.tech/tags/coreutils.md>), [filesystem](<https://devfeed.tech/tags/filesystem.md>), [init](<https://devfeed.tech/tags/init.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [libc](<https://devfeed.tech/tags/libc.md>), [library](<https://devfeed.tech/tags/library.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-kernel](<https://devfeed.tech/tags/linux-kernel.md>), [memory-safe](<https://devfeed.tech/tags/memory-safe.md>), [news](<https://devfeed.tech/tags/news.md>), [rust](<https://devfeed.tech/tags/rust.md>), [systemd](<https://devfeed.tech/tags/systemd.md>)

### AI overview

systemd has merged optional support for new standalone Rust programs, with `systemd-keyring-setup` the first example; existing C code is not being ported. Rust programs must build through Meson without Cargo, may use only the `core` and `libc` crates, and must match their C counterparts' behavior. They require rustc 1.85, bindgen 0.71.1, and Meson 1.4.0 or newer, so distributions enabling every feature need the Rust toolchain or must disable Rust support. `libsystemd-shared` remains in C because Rust lacks a stable ABI and putting Rust there could duplicate code. Sensitive filesystem access is another obstacle: systemd relies on file-descriptor-based path lookup, which the excerpt says Rust's standard path handling does not provide.

### Source excerpt

The rustification is ongoing, with Rust-written programs now allowed and existing C code not being ported.

## GSoC 2026: Enable float80/float128 on Unsupported Targets for LLVM libc

DevFeed: [GSoC 2026: Enable float80/float128 on Unsupported Targets for LLVM libc](<https://devfeed.tech/articles/gsoc-2026-enable-float80-float128-on-unsupported-targets-for-llvm-libc-122899.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2026-08-22-gsoc-float80-and-float128-in-llvm-libc/>)

Author: Sukumar Sawant

Published: 2026-11-02T00:00:00Z

Content type: news

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [floating-point](<https://devfeed.tech/topics/floating-point.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [clang](<https://devfeed.tech/topics/clang.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [64-bit](<https://devfeed.tech/tags/64-bit.md>), [clang](<https://devfeed.tech/tags/clang.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [computer-science](<https://devfeed.tech/tags/computer-science.md>), [emulation](<https://devfeed.tech/tags/emulation.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [google](<https://devfeed.tech/tags/google.md>), [google-summer-of-code](<https://devfeed.tech/tags/google-summer-of-code.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [ieee](<https://devfeed.tech/tags/ieee.md>), [india](<https://devfeed.tech/tags/india.md>), [libc](<https://devfeed.tech/tags/libc.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [math](<https://devfeed.tech/tags/math.md>), [msvc](<https://devfeed.tech/tags/msvc.md>), [mumbai](<https://devfeed.tech/tags/mumbai.md>), [software](<https://devfeed.tech/tags/software.md>), [windows](<https://devfeed.tech/tags/windows.md>), [x86](<https://devfeed.tech/tags/x86.md>)

### AI overview

LLVM libc added software-emulated `Float128` and `Float80` so high-precision math code can build and be tested on targets lacking the corresponding native formats. The work added emulation types, operators and conversions, integrated them into floating-point support, and migrated `float128` math functions incrementally. A Windows build failure traced to `BigInt`'s zero-initialized member making it non-trivially constructible; moving initialization into constructors made `bit_cast` accept it. Testing also exposed ABI differences between native and emulated types, so migrated functions use emulation internally while retaining native `float128` parameters and returns when available. The article reports support for building and testing the types without native support and enabling `float128` functions on Windows with MSVC, macOS and GPU targets. Remaining work includes migrating more functions, adding explicit `float80` entrypoints and comparing performance.

### Source excerpt

Introduction Hello LLVM Community! I am Sukumar Sawant, Computer Science student at Mumbai University (VIT Mumbai), India. I had the pleasure of working on the project on introducing float80 and float128 (emulated) in LLVM libc as part of Google Summer of Code 2026 along with my mentors Tue Ly, Nicolas Celik and Krishna Pandey. "Why"? float80 and float128 are the two extended-precision floating-point formats LLVM libc supports. float80 is the 80-bit x87 extended precision format, with 1 sign bit, 15 exponent bits, and a 64-bit significand carrying an explicit integer bit. float128 is the IEEE 754 binary128 ("quad precision") format, with 1 sign bit, 15 exponent bits, and 112 stored mantissa bits. Both formats are already natively supported on several platforms, but not on all of them. For example: MSVC on Windows treats long double as a 64-bit double and has no native __float128 type. AArch64 targets typically use a 128-bit long double, but lack the 80-bit extended precision format entirely. Clang on certain non-x86 targets may not enable __float128 by default. This matters because LLVM libc needs to build and test its high-precision math routines consistently across every target it supports, not just the ones where these types happen to exist natively. Where the compiler provides no native type, the templated implementations cannot be compiled at all. The goal of this project was to lift that restriction by emulating both formats in software, so that the same templated implementations build and run everywhere, producing identical results whether the underlying type is native or emulated. The exact goals of this project were to: Add software emulation classes for the float80 and float128 formats. Provide the operator overloads and conversions needed for these classes to be used in place of the native types. Integrate the emulated types into the existing floating-point support infrastructure. Modify the existing float128 math functions to work correctly with the emul

## More vulnerabilities in widely deployed software

DevFeed: [More vulnerabilities in widely deployed software](<https://devfeed.tech/articles/more-vulnerabilities-in-widely-deployed-software-93045.md>)

Original publisher: [Read original article](<https://lwn.net/Articles/1102044/>)

Author: daroc

Published: 2026-10-21T17:09:24Z

Content type: news

Language: en

Sources: [LWN.net](<https://devfeed.tech/sources/lwn-net.md>)

Topics: [vulnerability management](<https://devfeed.tech/topics/vulnerability-management.md>), [code security](<https://devfeed.tech/topics/code-security.md>), [Memory Safety](<https://devfeed.tech/topics/memory-safety.md>)

Tags: [code-execution](<https://devfeed.tech/tags/code-execution.md>), [compression](<https://devfeed.tech/tags/compression.md>), [libc](<https://devfeed.tech/tags/libc.md>), [musl](<https://devfeed.tech/tags/musl.md>), [node-js](<https://devfeed.tech/tags/node-js.md>), [remote-code-execution](<https://devfeed.tech/tags/remote-code-execution.md>), [software](<https://devfeed.tech/tags/software.md>), [vulnerabilities](<https://devfeed.tech/tags/vulnerabilities.md>)

### AI overview

Node.js released security updates that address several vulnerabilities, including a remote-code-execution bug affecting programs using Brotli compression. Separately, musl libc disclosed an out-of-bounds write that could potentially enable remote code execution, but that impact has not been demonstrated. The excerpt does not provide affected versions or remediation details.

### Source excerpt

The Node.js project has released a number of security updates to fix, among other vulnerabilities, a remote-code-execution bug affecting programs that use Brotli compression. And, in case any programmers who use compiled languages thought they could relax, the musl libc project has also announced a new vulnerability: an out-of-bounds write that could potentially lead to remote code execution, although that has not been demonstrated.

## GSOC26: Sharing LLVM-libc's floating-point routines with compiler-rt

DevFeed: [GSOC26: Sharing LLVM-libc's floating-point routines with compiler-rt](<https://devfeed.tech/articles/gsoc26-sharing-llvm-libc-s-floating-point-routines-with-compiler-rt-64734.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2026-08-24-gsoc-sharing-libc-with-compiler-rt/>)

Author: Mohamed Emad

Published: 2026-10-05T00:00:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [Compiler](<https://devfeed.tech/topics/compiler.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [build](<https://devfeed.tech/tags/build.md>), [builtins](<https://devfeed.tech/tags/builtins.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [compiler-rt](<https://devfeed.tech/tags/compiler-rt.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [headers](<https://devfeed.tech/tags/headers.md>), [libc](<https://devfeed.tech/tags/libc.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [math](<https://devfeed.tech/tags/math.md>)

### AI overview

The LLVM project describes sharing LLVM-libc floating-point math routines with compiler-rt, replacing duplicated soft-float implementations with thin wrappers that forward to shared routines. The approach is opt-in through a CMake macro, and the article covers implementation challenges involving recursive builtin calls, 16-bit formats, x87 extended precision, symbol conflicts, and generating wrappers, build entries, and tests. Benchmarking and optimization are planned, while some comparison and conversion work remains under review.

### Source excerpt

Introduction Hello LLVM community! I am Mohamed Emad, CSE student at Zagazig University, Egypt. This summer I worked on the next step of the Hand-in-Hand project, an effort that began in 2024 with #91651 to make LLVM-libc a shared foundation that the rest of LLVM can build on. My part was to share LLVM-libc's floating-point math routines with compiler-rt. It replaces compiler-rt's existing builtins, which were written from scratch in C and assembly with a separate implementation per architecture, with LLVM-libc's code, which is well-tested and well-maintained. Overview When a program targets hardware without a floating-point unit, the compilercannot emit an fadd or fcvt instruction. Instead it emits a call to a helperroutine: __adddf3 to add two doubles, __fixdfsi to convert a double to anint, __letf2 to compare two float128s. compiler-rt's builtins libraryships these routines, and it has carried its own soft-float implementations ofthem for years. LLVM-libc implements the same math independently, with correctly-rounded resultsand a large test suite behind it. So the project starts from an awkward fact:LLVM keeps two separate soft-float implementations of the same operations. Twocopies drift apart, each needs its own review and testing, and a bug fixed inone rarely reaches the other. compiler-rt's versions are also older and lessrigorously verified than libc's. This project gives compiler-rt one source of truth. LLVM-libc exposes itsroutines as freestanding headers under LIBC_NAMESPACE::shared::, and eachcompiler-rt builtin becomes a thin wrapper that forwards to the matching libcroutine. A single .c file such as truncdfsf2.c is swapped for atruncdfsf2.cpp that calls shared::truncdfsf2. The swap happens through aCMake macro, use_libc_builtin(), gated on COMPILER_RT_USE_LIBC_MATH, sodistributors who want the libc-backed path opt in and everyone else keeps theexisting behavior. Figure 1: Two soft-float implementations of the same operation become one shared LLVM-libc

## Announcing Rust 1.99.0

DevFeed: [Announcing Rust 1.99.0](<https://devfeed.tech/articles/announcing-rust-1-99-0-63442.md>)

Original publisher: [Read original article](<https://blog.rust-lang.org/2026/10/01/Rust-1.99.0/>)

Author: The Rust Release Team

Published: 2026-10-01T00:00:00Z

Content type: release

Language: en

Sources: [Rust](<https://devfeed.tech/sources/rust-blog.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [libc](<https://devfeed.tech/tags/libc.md>), [pointers](<https://devfeed.tech/tags/pointers.md>), [release](<https://devfeed.tech/tags/release.md>), [rust](<https://devfeed.tech/tags/rust.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

Rust 1.99.0 stabilizes C-ABI variadic function definitions and naked variadic functions with non-C ABIs. It also settles safety requirements for size and alignment queries on raw pointers and updates Box::leak documentation to discourage later deallocation patterns due to interactions with compiler optimizations and upcoming custom allocators.

### Source excerpt

The Rust team is happy to announce a new version of Rust, 1.99.0. Rust is a programming language empowering everyone to build reliable and efficient software. If you have a previous version of Rust installed via rustup, you can get 1.99.0 with: $ rustup update stable If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes for 1.99.0. If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel (rustup default beta) or the nightly channel (rustup default nightly). Please report any bugs you might come across! What's in 1.99.0 stable extern "C" variadics Rust 1.99.0 stabilizes defining C-ABI variadic functions with "C" and "C-unwind" ABIs. Variadic functions defined this way use a variable argument list (...) and accept an arbitrary number of arguments. Rust could already call externally-defined variadic functions (e.g., libc::printf). With Rust 1.99, these functions can now be written in Rust itself: /// SAFETY: must be called with (at least) 2 i32 arguments. unsafe extern "C" fn sum(mut args: ...) -> i32 { // SAFETY: guaranteed by the caller. let a = unsafe { args.next_arg::<i32>() }; let b = unsafe { args.next_arg::<i32>() }; a + b } fn foo() -> i32 { unsafe { sum(0i32, 2i32) } } The type of ... is VaList, which is ABI-compatible with the C va_list type across targets. What types can be read from a VaList is guarded by the VaArgSafe trait. For more details on c-variadic functions, see the Reference. This release also stabilizes support for defining naked variadic functions with non-"C" ABIs, which must be written via inline assembly. Layout information from raw pointers This release settles the safety requirements for retrieving the size and alignment on raw pointers to both Sized (trivially safe, already possible on stable) and non-Sized types. This is done by stabilizing three functions: Layout::for_value_raw mem::size_of_val_raw mem

## Solod 0.4: Better C interop

DevFeed: [Solod 0.4: Better C interop](<https://devfeed.tech/articles/solod-0-4-better-c-interop-60425.md>)

Original publisher: [Read original article](<https://antonz.org/solod-0.4/>)

Author: Anton Zhiyanov

Published: 2026-09-12T13:00:00Z

Content type: release

Language: en

Sources: [Anton Zhiyanov](<https://devfeed.tech/sources/anton-zhiyanov.md>)

Topics: [C](<https://devfeed.tech/topics/c.md>), [Go Language](<https://devfeed.tech/topics/go-language.md>), [Code](<https://devfeed.tech/topics/code.md>), [Luvit](<https://devfeed.tech/topics/luvit.md>), [SQLite](<https://devfeed.tech/topics/sqlite.md>)

Tags: [c](<https://devfeed.tech/tags/c.md>), [developers](<https://devfeed.tech/tags/developers.md>), [go](<https://devfeed.tech/tags/go.md>), [interop](<https://devfeed.tech/tags/interop.md>), [libc](<https://devfeed.tech/tags/libc.md>), [library](<https://devfeed.tech/tags/library.md>), [libuv](<https://devfeed.tech/tags/libuv.md>), [release](<https://devfeed.tech/tags/release.md>), [sqlite](<https://devfeed.tech/tags/sqlite.md>)

### AI overview

Solod 0.4 is a subset of Go that translates to regular C, providing low-level control, manual memory management, zero runtime overhead, and source-level C interop. The release adds automatic bindings for third-party C libraries, expands freestanding standard-library support, improves type assertions and C type helpers, and adds tooling and testing features.

### Source excerpt

A strict subset of Go that translates to regular C.

## postmarketOS in 2026-08: Conferences

DevFeed: [postmarketOS in 2026-08: Conferences](<https://devfeed.tech/articles/postmarketos-in-2026-08-conferences-106692.md>)

Original publisher: [Read original article](<https://nura.eco/blog/2026/09/06/pmOS-update-2026-08/>)

Published: 2026-09-06T00:00:00Z

Content type: news

Language: en

Sources: [postmarketOS](<https://devfeed.tech/sources/postmarketos-blog.md>)

Topics: [Developer Events](<https://devfeed.tech/topics/developer-events.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>), [Mobile Testing](<https://devfeed.tech/topics/mobile-testing.md>), [Internationalization (i18n)](<https://devfeed.tech/topics/i18n.md>)

Tags: [2026](<https://devfeed.tech/tags/2026.md>), [alpine](<https://devfeed.tech/tags/alpine.md>), [automated-testing](<https://devfeed.tech/tags/automated-testing.md>), [conferences](<https://devfeed.tech/tags/conferences.md>), [defcon](<https://devfeed.tech/tags/defcon.md>), [gdb](<https://devfeed.tech/tags/gdb.md>), [i18n](<https://devfeed.tech/tags/i18n.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [libc](<https://devfeed.tech/tags/libc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [matrix](<https://devfeed.tech/tags/matrix.md>), [nura](<https://devfeed.tech/tags/nura.md>), [organizational](<https://devfeed.tech/tags/organizational.md>), [os](<https://devfeed.tech/tags/os.md>), [postmarketos](<https://devfeed.tech/tags/postmarketos.md>)

### AI overview

Conference activity was the month's main theme: postmarketOS had stands at FrOSCon, FOSSY and DEFCON, and its own conference schedule went live, though the event was already fully booked. Video recordings or streams were being explored without a guarantee. Project updates include faster GitLab hosting after repositories moved to SSDs, a production debuginfod server for postmarketOS and Alpine, and working collation in the musl locale overhaul. A newly accepted proposal aims to release an immutable postmarketOS version and improve automated hardware testing. A merged policy permits case-by-case support for bootstrap software associated with proprietary tools such as Steam, with safeguards including explicit user choice and disclosure, maintenance by at least two community members, and documentation. Other updates cover generic postmarketOS kernels for x86_64, Fairphone 5 rear camera support, and apkmr for testing merge requests.

### Source excerpt

Conferences has been the main theme of this month. We had stands at FrOSCon (photo, next to our friends from Phosh), FOSSY (pictured above) as well as DEFCON and the following postmarketOS / Linux Mobile related talks were given: Automated testing of a phone operating system (Luca at FrOSCon) Push-Benachrichtigungen. Dezentral und OpenSource (Daniel G. at FrOSCon) Random Cool Things from postmarketOS (a linux-based mobile OS) (Ranny at DEFCON) Controlling our devices: linux on mobile (Ranny at DEFCON) Besides that we have of course been very busy planning our own conference and are happy to announce that the schedule is now live! For those who did not get a ticket, the event is completely booked now but we are trying to do video recordings and/or live streams so you can watch the talks at home (no promises for that though since this is our first event). If all goes well, we might even follow up with another one next year. For those who will be there, make sure to join the Matrix chat / IRC channel. Organizational OSUOSL, who maintain gitlab.postmarketos.org, have reacted to slowdowns we have observed across the site and made it significantly faster by moving git repositories to SSDs. Thanks, Lance! Paul has joined the infrastructure team. NLnet and NGI Zero Core related news A production debuginfod server for postmarketOS and Alpine was set up, "allowing developers to automatically fetch debug symbols during crash analysis with tools like coredumpctl and gdb" (!9468, sync-debuginfod, milestone 34) An update was posted by Rich on the collation + i18n support in musl libc project: "I'm pleased to announce a big step in the #musl locale overhaul project: collation is working! This is the result of a long project to design data structures and logic that would admit honoring the full Unicode Collation Algorithm rules, including equivalence under normalization, and keep the size of collation weight tables for the entirety of Unicode under control." And last but not least,

## The holy grail of nixpkgs: version ranges

DevFeed: [The holy grail of nixpkgs: version ranges](<https://devfeed.tech/articles/the-holy-grail-of-nixpkgs-version-ranges-54768.md>)

Original publisher: [Read original article](<https://fzakaria.com/2026/09/01/the-holy-grail-of-nixpkgs-version-ranges>)

Published: 2026-09-01T19:00:00Z

Content type: article

Language: en

Sources: [Farid Zakaria's Blog](<https://devfeed.tech/sources/farid-zakaria-s-blog.md>)

Topics: [Nix](<https://devfeed.tech/topics/nix.md>), [version](<https://devfeed.tech/topics/version.md>), [Package Management](<https://devfeed.tech/topics/package-management.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>), [Supercomputing](<https://devfeed.tech/topics/supercomputing.md>)

Tags: [dependency](<https://devfeed.tech/tags/dependency.md>), [libc](<https://devfeed.tech/tags/libc.md>), [nix](<https://devfeed.tech/tags/nix.md>), [nixpkgs](<https://devfeed.tech/tags/nixpkgs.md>), [npm](<https://devfeed.tech/tags/npm.md>), [version](<https://devfeed.tech/tags/version.md>), [webassembly](<https://devfeed.tech/tags/webassembly.md>)

### AI overview

The article explores adding version-range support and dependency solving to nixpkgs, including a browser-based solver compiled to WebAssembly. It compares Nixpkgs with package ecosystems such as npm, Cargo, pip, and Spack, and discusses compatibility constraints including glibc.

### Source excerpt

Update You can try this live at fzakaria.github.io/grail and query nixpkgs version ranges in your browser, the same solver, compiled to WebAssembly.

## ESP-IDF v6.0: Default libc Switches from Newlib to PicolibC

DevFeed: [ESP-IDF v6.0: Default libc Switches from Newlib to PicolibC](<https://devfeed.tech/articles/esp-idf-v6-0-default-libc-switches-from-newlib-to-picolibc-13762.md>)

Original publisher: [Read original article](<https://developer.espressif.com/blog/2026/04/esp-idf-6-default-libc-picolibc/>)

Author: John Lee

Published: 2026-04-02T00:00:00Z

Content type: article

Language: en

Sources: [Blog on Developer Portal](<https://devfeed.tech/sources/blog-on-developer-portal.md>)

Topics: [ESP-IDF](<https://devfeed.tech/topics/esp-idf.md>), [C](<https://devfeed.tech/topics/c.md>), [Embedded Systems](<https://devfeed.tech/topics/embedded-systems.md>), [migration](<https://devfeed.tech/topics/migration.md>), [Streams](<https://devfeed.tech/topics/streams.md>), [Library](<https://devfeed.tech/topics/library.md>), [POSIX](<https://devfeed.tech/topics/posix.md>)

Tags: [apis](<https://devfeed.tech/tags/apis.md>), [architectures](<https://devfeed.tech/tags/architectures.md>), [blog](<https://devfeed.tech/tags/blog.md>), [c](<https://devfeed.tech/tags/c.md>), [compatibility](<https://devfeed.tech/tags/compatibility.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [embedded-systems](<https://devfeed.tech/tags/embedded-systems.md>), [esp-idf](<https://devfeed.tech/tags/esp-idf.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [libc](<https://devfeed.tech/tags/libc.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [memory](<https://devfeed.tech/tags/memory.md>), [migration](<https://devfeed.tech/tags/migration.md>), [newlib](<https://devfeed.tech/tags/newlib.md>), [performance](<https://devfeed.tech/tags/performance.md>), [picolibc](<https://devfeed.tech/tags/picolibc.md>), [posix](<https://devfeed.tech/tags/posix.md>), [streams](<https://devfeed.tech/tags/streams.md>), [systems](<https://devfeed.tech/tags/systems.md>), [toolchains](<https://devfeed.tech/tags/toolchains.md>)

### AI overview

ESP-IDF v6.0 changes its default C library from Newlib to PicolibC. The article compares the libraries' memory usage, standard I/O behavior, compatibility, and migration considerations, including measurements on ESP32-C3.

### Source excerpt

ESP-IDF v6.0 switches the default C library from Newlib to PicolibC. This article compares both libraries in terms of memory usage, stdio behavior, compatibility, and migration tradeoffs, and explains when keeping Newlib still makes sense.

## Java Hello World, LLVM Edition

DevFeed: [Java Hello World, LLVM Edition](<https://devfeed.tech/articles/java-hello-world-llvm-edition-23022.md>)

Original publisher: [Read original article](<https://www.javaadvent.com/2025/12/java-hello-world-llvm-edition.html>)

Author: James Hamilton

Published: 2025-12-07T02:02:37Z

Content type: tutorial

Language: en

Sources: [Java Advent Calendar](<https://devfeed.tech/sources/java-advent-calendar.md>)

Topics: [LLVM](<https://devfeed.tech/topics/llvm.md>), [Java](<https://devfeed.tech/topics/java.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [api](<https://devfeed.tech/tags/api.md>), [bytecode](<https://devfeed.tech/tags/bytecode.md>), [clang](<https://devfeed.tech/tags/clang.md>), [code-generation](<https://devfeed.tech/tags/code-generation.md>), [compile](<https://devfeed.tech/tags/compile.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [compilers](<https://devfeed.tech/tags/compilers.md>), [core-libraries](<https://devfeed.tech/tags/core-libraries.md>), [debian](<https://devfeed.tech/tags/debian.md>), [intermediate](<https://devfeed.tech/tags/intermediate.md>), [interpreter](<https://devfeed.tech/tags/interpreter.md>), [ir](<https://devfeed.tech/tags/ir.md>), [java](<https://devfeed.tech/tags/java.md>), [java-advent](<https://devfeed.tech/tags/java-advent.md>), [jdk](<https://devfeed.tech/tags/jdk.md>), [jit](<https://devfeed.tech/tags/jit.md>), [jvm](<https://devfeed.tech/tags/jvm.md>), [libc](<https://devfeed.tech/tags/libc.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [llvm-ir](<https://devfeed.tech/tags/llvm-ir.md>), [machine](<https://devfeed.tech/tags/machine.md>), [memory](<https://devfeed.tech/tags/memory.md>)

### AI overview

The article shows how to generate and run LLVM IR from Java instead of generating Java bytecode. Using Java's Foreign Function & Memory (FFM) API, it calls the LLVM C API to build a "Hello, World!" program and JIT-compile it to native code. The excerpt explains that LLVM IR is a strongly typed, SSA-based intermediate language with in-memory, bitcode, and readable assembly forms. It describes installing LLVM's shared libraries and headers locally, then introduces a textual IR example that can be run with `lli`; the example uses a global string, declares libc's `puts`, defines `main`, and calls `puts`. The excerpt ends as it begins introducing the FFM API, so implementation details beyond this setup are not available.

### Source excerpt

After exploring Java bytecode in previous years (2022, 2023, 2024), this year we'll take an unexpected detour for a Java advent: instead of generating Java bytecode, we'll use Java to build and execute LLVM IR, the intermediate language behind compilers like clang. Using Java's Foreign Function & Memory (FFM) API, we'll call the LLVM C [...] The post Java Hello World, LLVM Edition appeared first on JVM Advent.

## GSoC 2025: Bfloat16 in LLVM libc

DevFeed: [GSoC 2025: Bfloat16 in LLVM libc](<https://devfeed.tech/articles/gsoc-2025-bfloat16-in-llvm-libc-43123.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2025-09-10-bfloat16-in-llvm-libc/>)

Author: Krishna Pandey

Published: 2025-09-29T00:00:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [LLVM](<https://devfeed.tech/topics/llvm.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>), [Jule](<https://devfeed.tech/topics/jule.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [arm](<https://devfeed.tech/tags/arm.md>), [c-plus-plus-23](<https://devfeed.tech/tags/c-plus-plus-23.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [libc](<https://devfeed.tech/tags/libc.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [math](<https://devfeed.tech/tags/math.md>), [risc-v](<https://devfeed.tech/tags/risc-v.md>), [x86](<https://devfeed.tech/tags/x86.md>)

### AI overview

This article describes a GSoC project that added BFloat16 support to LLVM libc. It covers the type, generic correctly rounded math functions, supported architectures, additional comparison and higher math functions, limitations, and planned work.

### Source excerpt

Introduction BFloat16 is a 16-bit floating-point format, introduced by Google and standardized in C++23 as std::bfloat16_t. It uses 1 sign bit, 8 exponent bits (the same as float), and 7 mantissa bits. This configuration allows BFloat16 to represent a much wider dynamic range than IEEE binary16 (~3x10^38 values compared to 65,504), though with lower precision. BFloat16 has become popular in AI and machine learning use-cases where it offers significant performance advantages over IEEE binary32 while preserving its approximate dynamic range. The goal of this project was to implement the BFloat16 type in LLVM libc along with the basic math functions like fabsbf16, fmaxbf16, etc. We also want all functions to be generic (platform-independent) and correctly rounded for all rounding modes. What was done BFloat16 type was added to LLVM libc (libc/src/__support/FPUtil/bfloat16.h) #144463. All 70 expected basic math functions for bfloat16 were implemented, using a generic approach that supports all libc supported architectures (ARM, RISC-V, GPUs, x86, Darwin) (see table below). Implemented two additional basic math functions: iscanonicalbf16 and issignalingbf16. Implemented higher math functions: sqrtbf16 #156654 and log_bf16 #157811 (open). Comparison operations for the FPBits class were added #144983. Basic Math FunctionPRfabsbf16#148398ceilbf16, floorbf16, roundbf16, roundevenbf16, truncbf16#152352bf16add, bf16addf, bf16addl, bf16addf128, bf16sub, bf16subf, bf16subl, bf16subf128#152774fmaxbf16, fminbf16#152782bf16mul, bf16mulf, bf16mull, bf16mulf128#152847fmaximumbf16, fmaximum_magbf16, fmaximum_mag_numbf16, fmaximum_numbf16, fminimumbf16, fminimum_magbf16, fminimum_mag_numbf16, fminimum_numbf16#152881bf16div, bf16divf, bf16divl, bf16divf128#153191bf16fma, bf16fmaf, bf16fmal, bf16fmaf128#153231llrintbf16, llroundbf16, lrintbf16, lroundbf16, nearbyintbf16, rintbf16#153882fromfpbf16, fromfpxbf16, ufromfpbf16, ufromfpxbf16#153992nextafterbf16, nextdownbf16, nexttowardbf16, n

## GSoC 2025: Profiling and Testing Math Functions on GPUs

DevFeed: [GSoC 2025: Profiling and Testing Math Functions on GPUs](<https://devfeed.tech/articles/gsoc-2025-profiling-and-testing-math-functions-on-gpus-43118.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2025-08-29-gsoc-profiling-and-testing-math-functions-on-gpus/>)

Author: Leandro Augusto Lacerda Campos

Published: 2025-09-01T00:00:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [Computing](<https://devfeed.tech/topics/computing.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [C](<https://devfeed.tech/topics/c.md>), [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [OpenCL](<https://devfeed.tech/topics/opencl.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>)

Tags: [2025](<https://devfeed.tech/tags/2025.md>), [benchmark](<https://devfeed.tech/tags/benchmark.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [code](<https://devfeed.tech/tags/code.md>), [computing](<https://devfeed.tech/tags/computing.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [data](<https://devfeed.tech/tags/data.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [libc](<https://devfeed.tech/tags/libc.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [library](<https://devfeed.tech/tags/library.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [math](<https://devfeed.tech/tags/math.md>), [opencl](<https://devfeed.tech/tags/opencl.md>), [profiling](<https://devfeed.tech/tags/profiling.md>), [testing](<https://devfeed.tech/tags/testing.md>)

### AI overview

This report describes a Google Summer of Code 2025 project that developed a C++ framework for conformance testing of GPU math functions in LLVM-libc and expanded benchmarking infrastructure. It covers standards compliance, accuracy measurement, performance comparisons with vendor libraries, and support for AMD and NVIDIA hardware.

### Source excerpt

With the increasing importance of GPU computing, having a robust and familiar C standard library becomes a valuable asset for developers. The LLVM project is actively working to provide this foundation, as a solid libc implementation enables more complex libraries to be developed for and used on GPUs. A key part of this effort is providing the C standard math library (LLVM-libm) on GPUs, often reusing the same target-agnostic implementations developed for CPU targets. This context creates a twofold challenge. First, there is a need to systematically verify the conformance of these implementations to standards like OpenCL. Second, it is crucial to benchmark their performance against the highly-optimized vendor libraries to understand the trade-offs involved. This Google Summer of Code 2025 project was designed to address both challenges by developing a framework for conformance testing as well as refining and expanding the existing benchmarking infrastructure. The work provides two benefits to the LLVM community: It empowers libc contributors with a robust tool to validate their GPU math function implementations. It builds trust with end-users by providing transparent accuracy and performance data. This report details the work completed on this project. Conformance Testing To address the goal of accuracy verification, I implemented a C++ framework for conformance testing within the offload/unittests/Conformance directory. This framework was designed to be extensible, easy to use, and capable of testing various implementation providers (llvm-libm, cuda-math, hip-math) across different hardware platforms (AMD, NVIDIA). Key Components The framework's power and simplicity come from a few key components that work together: DeviceContext: A lightweight wrapper around the new Offload API that abstracts away the low-level details of device discovery, resource management, and kernel launching. InputGenerator: An extensible interface for test input generation. The framework pr

## Why pipes sometimes get "stuck": buffering

DevFeed: [Why pipes sometimes get "stuck": buffering](<https://devfeed.tech/articles/why-pipes-sometimes-get-stuck-buffering-21115.md>)

Original publisher: [Read original article](<https://jvns.ca/blog/2024/11/29/why-pipes-get-stuck-buffering/>)

Author: Julia Evans

Published: 2024-11-29T08:23:31Z

Content type: article

Language: en

Sources: [Julia Evans](<https://devfeed.tech/sources/julia-evans.md>)

Topics: [Terminal](<https://devfeed.tech/topics/terminal.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>), [Streams](<https://devfeed.tech/topics/streams.md>)

Tags: [deep-dive](<https://devfeed.tech/tags/deep-dive.md>), [glibc](<https://devfeed.tech/tags/glibc.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [libc](<https://devfeed.tech/tags/libc.md>), [performance](<https://devfeed.tech/tags/performance.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

### AI overview

This article explains why output from commands in Unix pipelines can appear to get stuck. Programs such as grep often use block buffering when writing to a pipe, so matches may remain in memory until the buffer fills or the program exits. When output goes directly to a terminal, line buffering usually makes each line appear immediately. The behavior depends on the program's implementation and, in the case discussed, libc and glibc.

### Source excerpt

Here's a niche terminal problem that has bothered me for years but that I never really understood until a few weeks ago. Let's say you're running this command to watch for some specific output in a log file: tail -f /some/log/file | grep thing1 | grep thing2 If log lines are being added to the file relatively slowly, the result I'd see is... nothing! It doesn't matter if there were matches in the log file or not, there just wouldn't be any output. I internalized this as "uh, I guess pipes just get stuck sometimes and don't show me the output, that's weird", and I'd handle it by just running grep thing1 /some/log/file | grep thing2 instead, which would work. So as I've been doing a terminal deep dive over the last few months I was really excited to finally learn exactly why this happens. why this happens: buffering The reason why "pipes get stuck" sometimes is that it's VERY common for programs to buffer their output before writing it to a pipe or file. So the pipe is working fine, the problem is that the program never even wrote the data to the pipe! This is for performance reasons: writing all output immediately as soon as you can uses more system calls, so it's more efficient to save up data until you have 8KB or so of data to write (or until the program exits) and THEN write it to the pipe. In this example: tail -f /some/log/file | grep thing1 | grep thing2 the problem is that grep thing1 is saving up all of its matches until it has 8KB of data to write, which might literally never happen. programs don't buffer when writing to a terminal Part of why I found this so disorienting is that tail -f file | grep thing will work totally fine, but then when you add the second grep, it stops working!! The reason for this is that the way grep handles buffering depends on whether it's writing to a terminal or not. Here's how grep (and many other programs) decides to buffer its output: Check if stdout is a terminal or not using the isatty function If it's a terminal, use line b

## GSoC 2024: Half-precision in LLVM libc

DevFeed: [GSoC 2024: Half-precision in LLVM libc](<https://devfeed.tech/articles/gsoc-2024-half-precision-in-llvm-libc-43105.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2024-08-31-half-precision-in-llvm-libc/>)

Author: Nicolas Celik

Published: 2024-08-31T00:00:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [LLVM](<https://devfeed.tech/topics/llvm.md>), [C](<https://devfeed.tech/topics/c.md>), [floating-point](<https://devfeed.tech/topics/floating-point.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [Mathematics](<https://devfeed.tech/topics/mathematics.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [standard](<https://devfeed.tech/topics/standard.md>)

Tags: [architectures](<https://devfeed.tech/tags/architectures.md>), [arm](<https://devfeed.tech/tags/arm.md>), [c](<https://devfeed.tech/tags/c.md>), [clang](<https://devfeed.tech/tags/clang.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [floating-point](<https://devfeed.tech/tags/floating-point.md>), [gcc](<https://devfeed.tech/tags/gcc.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [implementation](<https://devfeed.tech/tags/implementation.md>), [libc](<https://devfeed.tech/tags/libc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [math](<https://devfeed.tech/tags/math.md>), [precision](<https://devfeed.tech/tags/precision.md>), [risc-v](<https://devfeed.tech/tags/risc-v.md>), [standard](<https://devfeed.tech/tags/standard.md>)

### AI overview

This article reports on a Google Summer of Code project that implemented C23 half-precision floating-point math functions in LLVM libc. It covers generated headers, generic and architecture-specific implementations, optimization work, merged operations, open pull requests, and compatibility issues across compilers, runtimes, CPUs, and architectures.

### Source excerpt

C23 defines new floating-point types, such as _Float16, which corresponds tothe binary16 format from IEEE Std 754, also known as "half-precision," or FP16.C23 also defines new variants of the C standard library's math functionsaccordingly, such as fabsf16 to get the absolute value of a _Float16. The "Half-precision in LLVM libc" Google Summer of Code 2024 project aimed toimplement these new _Float16 math functions in LLVM libc, making it the firstknown C standard library implementation to implement these C23 functions. We split math functions into two categories: basic operations and higher mathfunctions. The current implementation status of math functions in LLVM libc canbe viewed at https://libc.llvm.org/math/index.html#implementation-status. The exact goals of this project were to: Setup generated headers properly so that the _Float16 type and _Float16functions can be used with various compilers and architectures. Add generic implementations of _Float16 basic operations for supportedarchitectures. Add optimized implementations of _Float16 basic operations for specificarchitectures using special hardware instructions and compiler builtinswhenever possible. Add generic implementations of as many _Float16 higher math functions aspossible. We knew we would not have enough time to implement all of them. Work done The _Float16 type can now be used in generated headers, and declarations of_Float16 math functions are generated with #ifdef guards to enable themwhen they are supported. https://github.com/llvm/llvm-project/pull/93567 All 70 planned _Float16 basic operations have been merged. https://github.com/llvm/llvm-project/issues/93566 The _Float16, float and double variants of various basic operationshave been optimized on certain architectures. https://github.com/llvm/llvm-project/pull/98376 https://github.com/llvm/llvm-project/pull/99037 https://github.com/llvm/llvm-project/pull/100002 Out of the 54 planned _Float16 higher math functions, 8 have been mergedand 9 hav

## GSoC 2024: GPU Libc Benchmarking

DevFeed: [GSoC 2024: GPU Libc Benchmarking](<https://devfeed.tech/articles/gsoc-2024-gpu-libc-benchmarking-43101.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2024-08-09-libc-gpu-benchmarking/>)

Author: James Hu

Published: 2024-08-09T00:00:00Z

Content type: article

Language: en

Sources: [LLVM Project](<https://devfeed.tech/sources/the-llvm-project-blog.md>)

Topics: [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [GPU](<https://devfeed.tech/topics/gpu.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [CUDA](<https://devfeed.tech/topics/cuda.md>), [CMake](<https://devfeed.tech/topics/cmake.md>), [Google](<https://devfeed.tech/topics/google.md>)

Tags: [amd](<https://devfeed.tech/tags/amd.md>), [benchmarking](<https://devfeed.tech/tags/benchmarking.md>), [cmake](<https://devfeed.tech/tags/cmake.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [cuda](<https://devfeed.tech/tags/cuda.md>), [google](<https://devfeed.tech/tags/google.md>), [gpu](<https://devfeed.tech/tags/gpu.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [infrastructure](<https://devfeed.tech/tags/infrastructure.md>), [libc](<https://devfeed.tech/tags/libc.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [nvidia](<https://devfeed.tech/tags/nvidia.md>), [offloading](<https://devfeed.tech/tags/offloading.md>), [project](<https://devfeed.tech/tags/project.md>), [results](<https://devfeed.tech/tags/results.md>), [threads](<https://devfeed.tech/tags/threads.md>)

### AI overview

An LLVM GSoC project developed microbenchmarking infrastructure for LLVM libc functions running on GPUs. The framework supports GPU execution, vendor implementation comparisons, CMake linking, and measurements such as cycles, iteration time, and standard deviation.

### Source excerpt

Hey everyone! My name is James and I worked on LLVM this summer through GSoC. My project is called GPU Libc Benchmarking. The main objective of this project was to develop microbenchmarking infrastructure for libc on the GPU. Background The LLVM libc project was designed as an alternative to glibc that aims to be modular, configurable, and sanitizer-friendly. Currently, LLVM libc is being ported to Nvidia and AMD GPUs to give libc functionality (e.g. printf(), malloc(), and math functions) on the GPU. As of March 2024, programs can use GPU libc in offloading languages (CUDA, OpenMP) or through direct compilation and linking with the libc library. What We Did During this project, we developed a microbenchmarking framework that is directly compiled for and run on the GPU, using libc functions to display output to the user. As this was a short project (90 hours), we mostly focused on developing the infrastructure and writing a few example usages (isalnum(), isalpha(), and sin()). Our benchmarking infrastructure is based on Google Benchmark and measures the average cycles, minimum, maximum, and standard deviation of each benchmark. Each benchmark is run for multiple iterations to stabilize the results. Benchmark writers can measure against vendor implementations of libc functions by passing specific linking flags to the benchmark's CMake portion and registering the corresponding vendor function from the benchmark itself. Below is an example of our benchmarking infrastructure's output for sinf() Benchmark | Cycles | Min | Max | Iterations | Time / Iteration | Stddev | Threads |----------------------------------------------------------------------------------------------------------Sinf_1 | 764 | 369 | 2101 | 273 | 7 us | 323 | 32 |Sinf_128 | 721 | 699 | 744 | 5 | 913 us | 16 | 32 |Sinf_1024 | 661 | 650 | 689 | 9 | 7 ms | 31 | 32 |Sinf_4096 | 666 | 663 | 669 | 5 | 28 ms | 28 | 32 |SinfTwoPi_1 | 372 | 369 | 632 | 70 | 7 us | 39 | 32 |SinfTwoPi_128 | 379 | 379 | 379 | 4 | 8

## Exploring printf on Cortex-M

DevFeed: [Exploring printf on Cortex-M](<https://devfeed.tech/articles/exploring-printf-on-cortex-m-47346.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/printf-on-embedded>)

Author: Noah Pendleton

Published: 2023-09-20T00:00:00Z

Content type: tutorial

Language: en

Sources: [Interrupt](<https://devfeed.tech/sources/interrupt.md>)

Topics: [C](<https://devfeed.tech/topics/c.md>), [Microcontroller](<https://devfeed.tech/topics/microcontroller.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [Streams](<https://devfeed.tech/topics/streams.md>)

Tags: [article](<https://devfeed.tech/tags/article.md>), [bare-metal](<https://devfeed.tech/tags/bare-metal.md>), [c](<https://devfeed.tech/tags/c.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [libc](<https://devfeed.tech/tags/libc.md>), [logs](<https://devfeed.tech/tags/logs.md>), [microcontrollers](<https://devfeed.tech/tags/microcontrollers.md>), [processes](<https://devfeed.tech/tags/processes.md>), [terminal](<https://devfeed.tech/tags/terminal.md>)

### AI overview

This article explains how C's printf function works on Cortex-M microcontrollers, including how formatted output reaches a host terminal through libc, system calls, or UART drivers. It also covers using newlib-nano in bare-metal applications, redirecting output, buffering, and reentrancy across interrupt or thread contexts.

### Source excerpt

The C printf function is a staple of embedded development. It's a simple way to get logs or debug statements off the system and into a terminal on the host. This article explores the various ways to get printf on Cortex-M microcontrollers. Continue reading...

## When printf debugging is a luxury

DevFeed: [When printf debugging is a luxury](<https://devfeed.tech/articles/when-printf-debugging-is-a-luxury-21558.md>)

Original publisher: [Read original article](<http://lackingrhoticity.blogspot.com/2010/12/when-printf-debugging-is-luxury.html>)

Author: Mark Seaborn (noreply@blogger.com)

Published: 2010-12-18T19:06:00Z

Content type: tutorial

Language: en

Sources: [Mark Seaborn](<https://devfeed.tech/sources/mark-seaborn.md>)

Topics: [debugging](<https://devfeed.tech/topics/debugging.md>), [Code](<https://devfeed.tech/topics/code.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Chromium](<https://devfeed.tech/topics/chromium.md>)

Tags: [chromium](<https://devfeed.tech/tags/chromium.md>), [code](<https://devfeed.tech/tags/code.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [glibc](<https://devfeed.tech/tags/glibc.md>), [libc](<https://devfeed.tech/tags/libc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [native-client](<https://devfeed.tech/tags/native-client.md>), [sandbox](<https://devfeed.tech/tags/sandbox.md>)

### AI overview

This article explains why printf() and assert() may be unavailable in certain low-level programming contexts, including signal handlers, limited-stack environments, and code that cannot use libc. It presents a simple assertion implementation that constructs failure messages at compile time and discusses bypassing libc to invoke Linux system calls when TLS register state makes libc wrappers unusable.

### Source excerpt

Inserting printf() calls is often considered to be a primitive fallback when other debugging tools are not available, such as stack backtraces with source line numbers. But there are some situations in low-level programming where most libc calls don't work and so even printf() and assert() are unavailable luxuries. This can happen: when libc is not properly initialised yet; when we writing code that is called by libc and cannot re-enter libc code; when we are in a signal handler; when only limited stack space is available; when we cannot allocate memory for some reason; or when we are not even linked to libc. Here's a fragment of code that has come in handy in these situations. It provides a simple assert() implementation: #include <string.h> #include <unistd.h> static void debug(const char *msg) { write(2, msg, strlen(msg)); } static void die(const char *msg) { debug(msg); _exit(1); } #define TO_STRING_1(x) #x #define TO_STRING(x) TO_STRING_1(x) #define assert(expr) { \ if (!(expr)) die("assertion failed at " __FILE__ ":" TO_STRING(__LINE__) \ ": " #expr "\n"); } By using preprocessor trickery to construct the assertion failure string at compile time, it avoids having to format the string at runtime. So it does not need to allocate memory, and it doesn't need to do multiple write() calls (which can become interleaved with other output in the multi-threaded case). Sometimes even libc's write() is a luxury. In some builds of GNU libc on Linux, glibc's syscall wrappers use the TLS register (%gs on i386) to fetch the address of a routine for making syscalls. However, if %gs is not set up properly for some reason, this will fail. For example, for Native Client's i386 sandbox, %gs is set to a different value whenever sandboxed code is running, and %gs stays in this state if sandboxed code faults and triggers a signal handler. In Chromium's seccomp-sandbox, %gs is set to zero in the trusted thread. In those situations we have to bypass libc and do the system calls ourselv