# linker

A linker is a tool that combines object files into an executable or dynamic library.

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

## Wild 0.11 Linker Released - Now Able To Link Linux Kernel Modules, WASM By Default

DevFeed: [Wild 0.11 Linker Released - Now Able To Link Linux Kernel Modules, WASM By Default](<https://devfeed.tech/articles/wild-0-11-linker-released-now-able-to-link-linux-kernel-modules-wasm-by-default-98764.md>)

Original publisher: [Read original article](<https://www.phoronix.com/news/Wild-0.11-Released>)

Author: Michael Larabel

Published: 2026-10-24T10:12:15Z

Content type: release

Language: en

Sources: [Phoronix](<https://devfeed.tech/sources/phoronix.md>)

Topics: [linker](<https://devfeed.tech/topics/linker.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>)

Tags: [desktop-linux](<https://devfeed.tech/tags/desktop-linux.md>), [development](<https://devfeed.tech/tags/development.md>), [fast](<https://devfeed.tech/tags/fast.md>), [feature](<https://devfeed.tech/tags/feature.md>), [gnu](<https://devfeed.tech/tags/gnu.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [latest](<https://devfeed.tech/tags/latest.md>), [linker](<https://devfeed.tech/tags/linker.md>), [linking](<https://devfeed.tech/tags/linking.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-benchmarking](<https://devfeed.tech/tags/linux-benchmarking.md>), [linux-hardware-benchmarks](<https://devfeed.tech/tags/linux-hardware-benchmarks.md>), [linux-hardware-reviews](<https://devfeed.tech/tags/linux-hardware-reviews.md>), [linux-how-to](<https://devfeed.tech/tags/linux-how-to.md>), [linux-kernel](<https://devfeed.tech/tags/linux-kernel.md>), [linux-performance](<https://devfeed.tech/tags/linux-performance.md>), [linux-server-benchmarks](<https://devfeed.tech/tags/linux-server-benchmarks.md>), [macos](<https://devfeed.tech/tags/macos.md>), [modules](<https://devfeed.tech/tags/modules.md>), [open-source-graphics](<https://devfeed.tech/tags/open-source-graphics.md>), [performance](<https://devfeed.tech/tags/performance.md>), [phoronix](<https://devfeed.tech/tags/phoronix.md>), [phoronix-test-suite](<https://devfeed.tech/tags/phoronix-test-suite.md>), [port](<https://devfeed.tech/tags/port.md>), [progress](<https://devfeed.tech/tags/progress.md>), [release](<https://devfeed.tech/tags/release.md>), [scripts](<https://devfeed.tech/tags/scripts.md>), [support](<https://devfeed.tech/tags/support.md>), [ubuntu-benchmarks](<https://devfeed.tech/tags/ubuntu-benchmarks.md>), [ubuntu-hardware](<https://devfeed.tech/tags/ubuntu-hardware.md>), [wasm](<https://devfeed.tech/tags/wasm.md>), [wild](<https://devfeed.tech/tags/wild.md>)

### AI overview

Wild 0.11 enables WebAssembly linking by default and expands GNU linker script support enough to begin linking Linux kernel modules; support is described as close to linking the Linux kernel itself. Linux remains Wild's primary focus. The macOS port has progressed but is not enabled by default. The excerpt also notes performance fixes and other enhancements without detailing them.

### Source excerpt

Wild 0.11 is out as the latest feature release of this very fast linker currently targeting Linux systems and focused on iterative development...

## Faster software linking with mold

DevFeed: [Faster software linking with mold](<https://devfeed.tech/articles/faster-software-linking-with-mold-65378.md>)

Original publisher: [Read original article](<https://lemire.me/blog/2026/10/06/linking-node-js-with-mold/>)

Author: Daniel Lemire

Published: 2026-10-06T08:00:20Z

Content type: comparison

Language: en

Sources: [Daniel Lemire](<https://devfeed.tech/sources/daniel-lemire.md>)

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

Tags: [gcc](<https://devfeed.tech/tags/gcc.md>), [linux](<https://devfeed.tech/tags/linux.md>), [multithreading](<https://devfeed.tech/tags/multithreading.md>), [node-js](<https://devfeed.tech/tags/node-js.md>)

### AI overview

A Node.js linking benchmark on a Linux server reports that multithreaded mold is about 24 times faster than GNU ld and 14 times faster than gold. Results use median timings from six runs per linker. The article explains how to enable mold through compiler flags or a build wrapper and why faster linking benefits developers who rebuild frequently.

### Source excerpt

When you build a program, the compiler turns each source file into an object file. Then a linker stitches all the object files and libraries into one executable. On Linux, the default linker is usually GNU ld (also called bfd). The GNU binutils also ship gold, an alternative linker that was designed to be faster. ... Continue reading Faster software linking with mold

## Mold 3.0 High Speed Linker Released Following Rust Rewrite

DevFeed: [Mold 3.0 High Speed Linker Released Following Rust Rewrite](<https://devfeed.tech/articles/mold-3-0-high-speed-linker-released-following-rust-rewrite-65020.md>)

Original publisher: [Read original article](<https://www.phoronix.com/news/Mold-3.0-Released>)

Author: Michael Larabel

Published: 2026-10-05T10:29:15Z

Content type: news

Language: en

Sources: [Phoronix](<https://devfeed.tech/sources/phoronix.md>)

Topics: [toolchain](<https://devfeed.tech/topics/toolchain.md>), [Rust](<https://devfeed.tech/topics/rust.md>), [linker](<https://devfeed.tech/topics/linker.md>), [systems](<https://devfeed.tech/topics/systems.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>)

Tags: [bugs](<https://devfeed.tech/tags/bugs.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [c-plus-plus-to-rust](<https://devfeed.tech/tags/c-plus-plus-to-rust.md>), [cmake](<https://devfeed.tech/tags/cmake.md>), [desktop-linux](<https://devfeed.tech/tags/desktop-linux.md>), [high-performance](<https://devfeed.tech/tags/high-performance.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-benchmarking](<https://devfeed.tech/tags/linux-benchmarking.md>), [linux-hardware-benchmarks](<https://devfeed.tech/tags/linux-hardware-benchmarks.md>), [linux-hardware-reviews](<https://devfeed.tech/tags/linux-hardware-reviews.md>), [linux-how-to](<https://devfeed.tech/tags/linux-how-to.md>), [linux-performance](<https://devfeed.tech/tags/linux-performance.md>), [linux-server-benchmarks](<https://devfeed.tech/tags/linux-server-benchmarks.md>), [lld](<https://devfeed.tech/tags/lld.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [onetbb](<https://devfeed.tech/tags/onetbb.md>), [open-source-graphics](<https://devfeed.tech/tags/open-source-graphics.md>), [performance](<https://devfeed.tech/tags/performance.md>), [phoronix](<https://devfeed.tech/tags/phoronix.md>), [phoronix-test-suite](<https://devfeed.tech/tags/phoronix-test-suite.md>), [programming](<https://devfeed.tech/tags/programming.md>), [rust](<https://devfeed.tech/tags/rust.md>), [rust-programming](<https://devfeed.tech/tags/rust-programming.md>), [rust-programming-language](<https://devfeed.tech/tags/rust-programming-language.md>), [systems](<https://devfeed.tech/tags/systems.md>), [ubuntu-benchmarks](<https://devfeed.tech/tags/ubuntu-benchmarks.md>), [ubuntu-hardware](<https://devfeed.tech/tags/ubuntu-hardware.md>), [version](<https://devfeed.tech/tags/version.md>)

### AI overview

Mold 3.0 is the first Rust-based release of the high-speed linker, rewritten from C++ as a drop-in replacement for Mold 2.42.1. It aims to close compatibility gaps with GNU ld, especially in linker script support, and removes Intel oneTBB in favor of Rust's Cargo build system. The release also reports improved handling of corrupted input files and numerous bug fixes.

### Source excerpt

The Mold high speed linker alternative to the likes of GNU Gold/LD and LLVM LLD recently has been going through a rewrite from C++ to Rust as well as having high ambitions of eventually becoming the default linker on Linux systems. Today marks the release of Mold 3.0 for this Rust-based high performance linker...

## Linker I/O tricks and their downsides

DevFeed: [Linker I/O tricks and their downsides](<https://devfeed.tech/articles/linker-i-o-tricks-and-their-downsides-55632.md>)

Original publisher: [Read original article](<https://maskray.me/blog/linker-io-tricks-and-their-downsides>)

Published: 2026-09-20T07:00:00Z

Content type: article

Language: en

Sources: [MaskRay](<https://devfeed.tech/sources/maskray.md>)

Topics: [linker](<https://devfeed.tech/topics/linker.md>), [systems](<https://devfeed.tech/topics/systems.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Process](<https://devfeed.tech/topics/process.md>), [Ext4](<https://devfeed.tech/topics/ext4.md>)

Tags: [ext4](<https://devfeed.tech/tags/ext4.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linker](<https://devfeed.tech/tags/linker.md>), [linux](<https://devfeed.tech/tags/linux.md>), [make](<https://devfeed.tech/tags/make.md>), [process](<https://devfeed.tech/tags/process.md>), [releases](<https://devfeed.tech/tags/releases.md>)

### AI overview

This post examines three linker I/O optimizations used by mold and wild: overwriting output files in place, forking a child during linking, and requesting transparent huge pages. It measures their performance benefits and explains how they can violate assumptions made by build systems, debuggers, and profilers.

### Source excerpt

mold and wild enable several tricks by default that other linkers don't do. This post looks at three of them: overwrite an existing output file in place instead of creating a new file fork a child to do the link, so that the parent can exit before the child releases its memory ask the kernel for transparent huge pages Each saves a few percent of wall time in an edit-relink loop. Each also breaks an assumption that build systems, debuggers, and profilers make about a process. I measured what they save and what they break. Setup: Linux 6.18, i7-14700K (28 threads), ext4 on a SATA SSD, transparent huge pages enabled=always. GNU ld 2.47, gold 2.47, LLD 23, mold 2.42.1 (TODO: I used the Rust port under development; check against the C++ release), wild at commit 47cc8e8e.

## C++ libraries linking

DevFeed: [C++ libraries linking](<https://devfeed.tech/articles/c-libraries-linking-22393.md>)

Original publisher: [Read original article](<https://www.red-lang.org/2026/07/c-libraries-linking.html>)

Author: Nenad Rakocevic (noreply@blogger.com)

Published: 2026-07-29T19:07:38Z

Content type: release

Language: en

Sources: [Red](<https://devfeed.tech/sources/red.md>)

Topics: [static linking](<https://devfeed.tech/topics/static-linking.md>), [Red](<https://devfeed.tech/topics/red.md>), [c/c++](<https://devfeed.tech/topics/c-c-plus-plus.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>), [MSVC](<https://devfeed.tech/topics/msvc.md>), [clang](<https://devfeed.tech/topics/clang.md>), [linker](<https://devfeed.tech/topics/linker.md>)

Tags: [arm](<https://devfeed.tech/tags/arm.md>), [build-tools](<https://devfeed.tech/tags/build-tools.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [clang](<https://devfeed.tech/tags/clang.md>), [exceptions](<https://devfeed.tech/tags/exceptions.md>), [gcc](<https://devfeed.tech/tags/gcc.md>), [gnu](<https://devfeed.tech/tags/gnu.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [libstdc-plus-plus](<https://devfeed.tech/tags/libstdc-plus-plus.md>), [linker](<https://devfeed.tech/tags/linker.md>), [linking](<https://devfeed.tech/tags/linking.md>), [linux](<https://devfeed.tech/tags/linux.md>), [macos](<https://devfeed.tech/tags/macos.md>), [msvc](<https://devfeed.tech/tags/msvc.md>), [red](<https://devfeed.tech/tags/red.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [static-linking](<https://devfeed.tech/tags/static-linking.md>), [templates](<https://devfeed.tech/tags/templates.md>), [toolchain](<https://devfeed.tech/tags/toolchain.md>)

### AI overview

The Red toolchain can now statically link C++ libraries and include their runtime on Windows, Linux (x86 and ARM), and macOS, using the existing import system and compilation switch; it accepts native object formats from MSVC, GCC, and clang. Requirements differ by platform: Windows needs Visual Studio Build Tools with the C++ workload for C++ libraries or code using Microsoft's static runtime; Linux needs GCC runtime archives beside the library; macOS needs no additional runtime setup. The excerpt says imported functions must expose a C interface, so C++ classes or templates need a thin C shim, and exceptions should be caught within exported functions. Link-time-optimized objects are unsupported, and Windows builds should use the static runtime. The stated current constraint is support for 32-bit libraries while the 64-bit toolchain is pending.

### Source excerpt

When we introduced static linking of C libraries, the promise was simple: name a .lib or .a archive in your #import, compile with -s, and ship one self-contained executable, no DLLs riding along, nothing to install on the target machine. There was one big frontier left, and everyone saw it coming: the libraries people want most (vision, GUI, audio, machine learning) are written in C++. A C++ library is a very different animal to link: it brings global constructors, exceptions, RTTI, templates, thread-local storage, and an entire language runtime that expects to be wired up just so. Until now, that was the line where you switched back to DLLs. That line is gone. The Red toolchain now statically links C++ libraries too (their runtime included) on every platform Red targets: Windows, Linux (x86 and ARM), and macOS. The best part: nothing changes. It is the same import system and same compilation switch: red -r -s myapp.red Libraries built with MSVC, GCC or clang are all accepted, in their native object formats. What you need preinstalled ➤ Windows: for C++ libraries (or C code built against Microsoft's static runtime), install the free Visual Studio Build Tools with the "Desktop development with C++" workload. Just one installer, and Red locates everything by itself: no vcvarsall, no PATH, no environment variables. Plain C libraries still need nothing at all and that now extends to C libraries touching COM, DirectX or MediaFoundation: the GUID constants such code references ship inside the toolchain, so a fresh Windows 11 with only red-toolchain executable on it links them! ➤ Linux: the GNU runtime archives from your distribution's gcc packages (libstdc++.a, libgcc.a and friends) placed next to your library. If one is missing, the linker names exactly what it needs. ➤ macOS: nothing beyond the toolchain; the system C++ runtime binds automatically. Some constraints 32-bit libraries for now, until the 64-bit toolchain is ready. The imported surface must be C (extern "C",

## Static linking support

DevFeed: [Static linking support](<https://devfeed.tech/articles/static-linking-support-22392.md>)

Original publisher: [Read original article](<https://www.red-lang.org/2026/06/static-linking-support.html>)

Author: Nenad Rakocevic (noreply@blogger.com)

Published: 2026-06-29T18:39:33Z

Content type: release

Language: en

Sources: [Red](<https://devfeed.tech/sources/red.md>)

Topics: [static linking](<https://devfeed.tech/topics/static-linking.md>), [linker](<https://devfeed.tech/topics/linker.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>), [Red](<https://devfeed.tech/topics/red.md>), [Claude Code](<https://devfeed.tech/topics/claude-code.md>)

Tags: [agents](<https://devfeed.tech/tags/agents.md>), [c](<https://devfeed.tech/tags/c.md>), [coding-agents](<https://devfeed.tech/tags/coding-agents.md>), [linker](<https://devfeed.tech/tags/linker.md>), [mod-player](<https://devfeed.tech/tags/mod-player.md>), [soundtracker](<https://devfeed.tech/tags/soundtracker.md>), [static-linking](<https://devfeed.tech/tags/static-linking.md>)

### AI overview

Red/System's toolchain now supports statically linking C libraries into a single self-contained executable. The linker reads platform object formats, selects needed sections, resolves system symbols, and applies relocations. In the example, miniz is compiled as a static library; its object must match Red/System's current 32-bit output, and disabling C++ exception tables and stack canaries avoids runtime helper references. The imported library name can stay extensionless: by default it resolves to the platform's shared library, while a static-link switch makes it resolve to the static library so its code is included in the executable. The excerpt shows the MSVC build beginning but omits the full commands and later platform details.

### Source excerpt

We must free ourselves of the hope that the sea will ever rest. We must learn to sail in high winds. -Aristotle Onassis The coding agents revolution is taking the world by storm and we are right in the middle of it. Like most of you, we have experimented with the agent's amazing (and frustrating) capabilities, pondering the role of Red and our vision in that new world. The conclusion is (un)surprisingly clear, Red is still very relevant and will be even more so as we improve it to better work with agents. In the meantime, here are some treats, starting with expanding our toolchain to support static linking of libraries written in C, allowing you to distribute single executables with all dependencies packed inside. This work has been done with the heavy assistance of frontier models and local harnesses (Claude Code and Codex). You might expect that to be a small addition, but a static linker has to read each platform's object format, pull in just the pieces it needs, fold duplicated sections, resolve system symbols and patch relocations by hand, so there was quite a bit of machinery to put together. The reward is the result everyone wants: a single, self-contained binary, with nothing to install beside it. A simple example Let's compress some data without shipping a compression library next to our program. For something concrete we will use miniz, a small, MIT-licensed library that implements the well-known zlib and deflate APIs. It is distributed as a single `miniz.c` / `miniz.h` pair, which makes it especially convenient to compile and link. The first step is to compile miniz into a static library. There are only two things to keep in mind. Red/System currently produces 32-bit code, so the object has to be 32-bit too; and it helps to switch off a couple of compiler extras (C++ exception tables and stack canaries) that would otherwise make the object reference runtime helpers we do not need. On Windows, with MSVC: cl /c /MT /GS- /EHs-c- /GR- miniz.c lib /out:miniz.l

## Bun v1.3.14

DevFeed: [Bun v1.3.14](<https://devfeed.tech/articles/bun-v1-3-14-49453.md>)

Original publisher: [Read original article](<https://bun.com/blog/bun-v1.3.14>)

Author: Jarred Sumner

Published: 2026-05-13T03:19:35Z

Content type: release

Language: en

Sources: [Bun](<https://devfeed.tech/sources/bun-com.md>)

Topics: [Bun](<https://devfeed.tech/topics/bun.md>), [Image processing](<https://devfeed.tech/topics/image-processing.md>), [Cache](<https://devfeed.tech/topics/cache.md>), [linker](<https://devfeed.tech/topics/linker.md>), [builds](<https://devfeed.tech/topics/builds.md>), [QUIC](<https://devfeed.tech/topics/quic.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [macOS](<https://devfeed.tech/topics/macos.md>)

Tags: [android](<https://devfeed.tech/tags/android.md>), [blog](<https://devfeed.tech/tags/blog.md>), [bun](<https://devfeed.tech/tags/bun.md>), [cache](<https://devfeed.tech/tags/cache.md>), [fetch](<https://devfeed.tech/tags/fetch.md>), [http-3](<https://devfeed.tech/tags/http-3.md>), [image-processing](<https://devfeed.tech/tags/image-processing.md>), [linker](<https://devfeed.tech/tags/linker.md>), [linux](<https://devfeed.tech/tags/linux.md>), [macos](<https://devfeed.tech/tags/macos.md>), [quic](<https://devfeed.tech/tags/quic.md>)

### AI overview

Bun v1.3.14 introduces a built-in image-processing API with support for common image formats and chainable transformations. It also adds an experimental global virtual store for faster warm installs, experimental HTTP/2 and HTTP/3 clients, HTTP/3 support in Bun.serve(), platform builds, and numerous fixes and compatibility improvements.

### Source excerpt

Fixes 92 issues (addressing 380 👍). Bun.Image -- a built-in image processing API, 7x faster warm installs with the isolated linker's global store, experimental HTTP/2 and HTTP/3 clients for fetch(), HTTP/3 (QUIC) in Bun.serve(), rewritten fs.watch() on Linux and macOS, --no-orphans CLI flag, process.execve(), Bun.Terminal on Windows via ConPTY, FreeBSD and Android builds, shared SSL_CTX cache, smaller binaries, and many bugfixes and Node.js compatibility improvements.

## Linux Detection Engineering - A Continuation on Persistence Mechanisms

DevFeed: [Linux Detection Engineering - A Continuation on Persistence Mechanisms](<https://devfeed.tech/articles/linux-detection-engineering-a-continuation-on-persistence-mechanisms-49000.md>)

Original publisher: [Read original article](<https://www.elastic.co/security-labs/threat-command/continuation-on-persistence-mechanisms>)

Author: Ruben Groenewoud

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

Content type: tutorial

Language: en

Sources: [Elastic Security Labs](<https://devfeed.tech/sources/elastic-security-labs.md>)

Topics: [Detection engineering](<https://devfeed.tech/topics/detection-engineering.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Security](<https://devfeed.tech/topics/security.md>), [Security Information and Event Management (SIEM)](<https://devfeed.tech/topics/siem-security.md>), [execution](<https://devfeed.tech/topics/execution.md>), [linker](<https://devfeed.tech/topics/linker.md>), [Operating system](<https://devfeed.tech/topics/operating-system.md>)

Tags: [detection](<https://devfeed.tech/tags/detection.md>), [detection-engineering](<https://devfeed.tech/tags/detection-engineering.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [execution](<https://devfeed.tech/tags/execution.md>), [linker](<https://devfeed.tech/tags/linker.md>), [linux](<https://devfeed.tech/tags/linux.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [operating-system](<https://devfeed.tech/tags/operating-system.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [security](<https://devfeed.tech/tags/security.md>), [siem](<https://devfeed.tech/tags/siem.md>)

### AI overview

This tutorial continues a Linux detection engineering series focused on persistence mechanisms. It covers how persistence techniques work, how to configure them, and how to detect and hunt them using SIEM rules, ES|QL, and OSQuery, with PANIX used to experiment with detection opportunities.

### Source excerpt

This document continues the exploration of Linux detection engineering, emphasizing advancements in monitoring persistence mechanisms. By building on past practices and insights, it provides a roadmap for improving detection strategies in complex environments.

## GSoC 2024: Adding LLVM and Clang plugin support for windows

DevFeed: [GSoC 2024: Adding LLVM and Clang plugin support for windows](<https://devfeed.tech/articles/gsoc-2024-adding-llvm-and-clang-plugin-support-for-windows-43110.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2024-11-23-gsoc-windows-plugins/>)

Author: Thomas Fransham

Published: 2024-12-16T00: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>), [clang](<https://devfeed.tech/topics/clang.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [CMake](<https://devfeed.tech/topics/cmake.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [builds](<https://devfeed.tech/topics/builds.md>), [linker](<https://devfeed.tech/topics/linker.md>), [Python](<https://devfeed.tech/topics/python.md>)

Tags: [builds](<https://devfeed.tech/tags/builds.md>), [clang](<https://devfeed.tech/tags/clang.md>), [cmake](<https://devfeed.tech/tags/cmake.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [gsoc](<https://devfeed.tech/tags/gsoc.md>), [linker](<https://devfeed.tech/tags/linker.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [llvm-org](<https://devfeed.tech/tags/llvm-org.md>), [python](<https://devfeed.tech/tags/python.md>), [windows](<https://devfeed.tech/tags/windows.md>)

### AI overview

This article describes work to add LLVM and Clang plugin support on Windows by improving shared-library and DLL builds. It explains differences between ELF and PE/COFF symbol handling, limitations on exported symbols, and changes to the LLVM CMake build system and related tooling.

### Source excerpt

Hello everyone! My name is Thomas and for GSOC I've been working on adding plugin support for LLVM and Clang to windows, which mainly involved implementing proper support for building LLVM and Clang as shared libraries (known as DLLs on Windows, dylibs on macOS, or DSOs/SOs on most other Unices) on Windows. Background The LLVM CMake buildsystem had some existing support for building LLVM as a shared library on Windows, but it suffers from two limitations when trying to make code symbol visibility for DLLs work like Linux.Most of the environments that LLVM works on use ELF as the object and executable file format. Windows, however, uses PE as its executable file format and COFF as its object file format. This difference is important to highlight as it impacts how dynamic libraries operate in these environments. The ELF (and MachO) based targets implicitly export symbols across the module boundary, but they can be explicitly controlled via the GNU attribute applied to the symbol: __attribute__((__visibility__("..."))). For PE/COFF environments, two different attributes are required. Symbols meant to be exposed to other modules are decorated with __declspec(dllexport) and symbols which are imported from other modules are decorated with __declspec(dllimport). Additionally, the PE format maintains a list of symbols which are public and assigns them a numerical identity known as the ordinal. This is represented in the file format as a 16-bit field, limiting the number of exported symbols to 64K. In order to support DLL builds on MinGW, a python script would scan the object files generated during the build and extract the symbol names from them. In order to remain under the 64K limit, the symbols would be filtered by pattern matching. The final set would then be used to create an import library that the consumer could use. This technique not only potentially over-exported symbols, introduced a secondary source of truth for the code, but also relied on the linker to generat

## What we've been reading in July (2024)

DevFeed: [What we've been reading in July (2024)](<https://devfeed.tech/articles/what-we-ve-been-reading-in-july-2024-47286.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/july-2024-roundup>)

Author: Gillian Minnehan

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

Content type: article

Language: en

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

Topics: [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [Reverse Engineering](<https://devfeed.tech/topics/reverse-engineering.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [linker](<https://devfeed.tech/topics/linker.md>), [Microcontroller](<https://devfeed.tech/topics/microcontroller.md>), [fpga](<https://devfeed.tech/topics/fpga.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [ASCII](<https://devfeed.tech/topics/ascii.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [development-board](<https://devfeed.tech/tags/development-board.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [fpga](<https://devfeed.tech/tags/fpga.md>), [linux](<https://devfeed.tech/tags/linux.md>), [open-source](<https://devfeed.tech/tags/open-source.md>)

### AI overview

A July 2024 roundup of articles, videos, tutorials, and tools covering embedded and firmware development, device firmware reverse engineering, CPU design, linker warnings, Linux memory management, USB Power Delivery, FPGA systems, ASCII, and binary-format tools.

### Source excerpt

Here are the articles, videos, and tools that we've been excited about this July. Continue reading...

## What we've been reading in December (2023)

DevFeed: [What we've been reading in December (2023)](<https://devfeed.tech/articles/what-we-ve-been-reading-in-december-2023-47223.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/december-2023-roundup>)

Author: Tyler Hoffman

Published: 2024-01-04T00:00:00Z

Content type: article

Language: en

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

Topics: [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>), [C](<https://devfeed.tech/topics/c.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [Zig](<https://devfeed.tech/topics/zig.md>), [ESP32](<https://devfeed.tech/topics/esp32.md>), [UEFI](<https://devfeed.tech/topics/uefi.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [boot](<https://devfeed.tech/topics/boot.md>), [linker](<https://devfeed.tech/topics/linker.md>), [Raspberry Pi](<https://devfeed.tech/topics/raspberry-pi.md>), [Emulator](<https://devfeed.tech/topics/emulator.md>)

Tags: [2023](<https://devfeed.tech/tags/2023.md>), [c](<https://devfeed.tech/tags/c.md>), [esp32](<https://devfeed.tech/tags/esp32.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [open-source](<https://devfeed.tech/tags/open-source.md>)

### AI overview

A December 2023 roundup of articles, videos, specifications, experiments, and open-source tools covering embedded software, firmware security, hardware emulation, LTE power consumption, C coding, Zig-based testing, linker layouts, ESP32 development, and RISC-V USB.

### Source excerpt

🎉 Happy New Year! 🎉 Here's to making 2024 the best year yet. 2023 was an exciting year for Interrupt, with 36 new articles, 13 new external contributors, 12 community Meetups, and a partridge in a pear tree. Thanks for being a part of it. Here are the articles, videos, and tools that we've been excited about this December. Continue reading...

## What we've been reading in September (2023)

DevFeed: [What we've been reading in September (2023)](<https://devfeed.tech/articles/what-we-ve-been-reading-in-september-2023-47356.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/sep-2023-roundup>)

Author: Tyler Hoffman

Published: 2023-10-04T00:00:00Z

Content type: article

Language: en

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

Topics: [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [Embedded Systems](<https://devfeed.tech/topics/embedded-systems.md>), [Internet of things](<https://devfeed.tech/topics/iot.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [C](<https://devfeed.tech/topics/c.md>), [linker](<https://devfeed.tech/topics/linker.md>), [Security](<https://devfeed.tech/topics/security.md>), [RISC-V](<https://devfeed.tech/topics/riscv.md>), [Arm](<https://devfeed.tech/topics/arm.md>), [Nix](<https://devfeed.tech/topics/nix.md>)

Tags: [arm](<https://devfeed.tech/tags/arm.md>), [c](<https://devfeed.tech/tags/c.md>), [ci](<https://devfeed.tech/tags/ci.md>), [dev](<https://devfeed.tech/tags/dev.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [embedded-systems](<https://devfeed.tech/tags/embedded-systems.md>), [ethernet](<https://devfeed.tech/tags/ethernet.md>), [interrupt](<https://devfeed.tech/tags/interrupt.md>), [iot](<https://devfeed.tech/tags/iot.md>), [linker](<https://devfeed.tech/tags/linker.md>)

### AI overview

A September 2023 roundup of articles, videos, webinars, documentation, and tools relevant to embedded software development. Featured subjects include battery-life optimization, Zephyr, modem subsystems, Single Pair Ethernet, Arm, RISC-V, Nix, CI dashboards, linker scripts, C23, and IoT device security.

### Source excerpt

Here are the articles, videos, and tools that we've been excited about this September. Continue reading...

## Adding a new target/object backend to LLVM JITLink

DevFeed: [Adding a new target/object backend to LLVM JITLink](<https://devfeed.tech/articles/adding-a-new-target-object-backend-to-llvm-jitlink-43093.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2023-03-16-adding-new-llvm-jitlink-target-object-backend/>)

Author: Kshitij Jain

Published: 2023-03-28T00: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>), [linker](<https://devfeed.tech/topics/linker.md>), [JIT](<https://devfeed.tech/topics/jit.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [C](<https://devfeed.tech/topics/c.md>), [static linking](<https://devfeed.tech/topics/static-linking.md>), [Assembly](<https://devfeed.tech/topics/assembly.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>)

Tags: [c](<https://devfeed.tech/tags/c.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [elf](<https://devfeed.tech/tags/elf.md>), [hardware](<https://devfeed.tech/tags/hardware.md>), [i386](<https://devfeed.tech/tags/i386.md>), [jit](<https://devfeed.tech/tags/jit.md>), [jitlink](<https://devfeed.tech/tags/jitlink.md>), [linker](<https://devfeed.tech/tags/linker.md>), [linking](<https://devfeed.tech/tags/linking.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [relocations](<https://devfeed.tech/tags/relocations.md>), [static-linking](<https://devfeed.tech/tags/static-linking.md>)

### AI overview

This article documents the addition of a new target/object backend to LLVM JITLink. It explains linking fundamentals, contrasts static and just-in-time linking, and describes the goal of linking 32-bit ELF objects with i386 relocations into a 32-bit process.

### Source excerpt

Motivation For the last year, I have been contributing to LLVM JITLink. This post aims todoubly serve as a summary of my work and documentation for future contributors looking to add a new target/objectbackend to LLVM JITLink. We will start by establishing some background and definitions of relevant concepts. Then, we will talk about whatthe project actually entailed. Finally, we will go over the execution details of the project. The end goal of the project was to make LLVM JITLink capable of linking a 32-bit ELF object file, with i386specific relocations, into a 32-bit process on the i386 hardware architecture. If the goal of the project already makes sense to you and you are looking to get started with adding a newtarget/object backend to LLVM JITLink yourself, you can skip to the "Recap and conveniences"section. BackgroundLinking Our code often relies on external dependencies. For example, even a simple hello-world program written in C dependson the C stdlib for the printf function. These external dependencies are expressed as symbolic references, which Iwill henceforth refer to as just symbols. Symbols are names of data or functions that have unknown addresses andare resolved or fixed up during the linking process. In chronological order - The compiler converts source code to machine code. The assembler converts machine code to object files (ELF, MachO, COFF etc.) The linker links one or more object files (fixing up symbolic references along the way) and produces anexecutable or a shared library (also called shared object or dylib). For the purposes of this discussion we will focus on executables, but the points that will be made hold for sharedobjects as well. JIT linking Unlike static linking, JIT (Just-in-time) linking is performed at runtime. While a static linker producesexecutables that are stored on disk, a JIT linker produces an in-memory image of the executable - essentiallyready to execute bytes in memory. JIT linking a C program may feel very much lik

## Interactive programming in C++ internships -- LLVM Blog Post

DevFeed: [Interactive programming in C++ internships -- LLVM Blog Post](<https://devfeed.tech/articles/interactive-programming-in-c-internships-llvm-blog-post-43092.md>)

Original publisher: [Read original article](<https://blog.llvm.org/posts/2022-12-21-compiler-research-internships/>)

Author: Sara Bellei

Published: 2022-12-21T00:00:00Z

Content type: article

Language: en

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

Topics: [C++](<https://devfeed.tech/topics/c-plus-plus.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [JIT](<https://devfeed.tech/topics/jit.md>), [linker](<https://devfeed.tech/topics/linker.md>), [interoperability](<https://devfeed.tech/topics/interoperability.md>), [Programming](<https://devfeed.tech/topics/programming.md>), [Python](<https://devfeed.tech/topics/python.md>), [D](<https://devfeed.tech/topics/d.md>)

Tags: [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [clad](<https://devfeed.tech/tags/clad.md>), [clang](<https://devfeed.tech/tags/clang.md>), [clang-repl](<https://devfeed.tech/tags/clang-repl.md>), [code](<https://devfeed.tech/tags/code.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [compiler-research](<https://devfeed.tech/tags/compiler-research.md>), [google-summer-of-code-2022](<https://devfeed.tech/tags/google-summer-of-code-2022.md>), [incremental-c-plus-plus](<https://devfeed.tech/tags/incremental-c-plus-plus.md>), [internships](<https://devfeed.tech/tags/internships.md>), [jit](<https://devfeed.tech/tags/jit.md>), [jitlink](<https://devfeed.tech/tags/jitlink.md>), [linker](<https://devfeed.tech/tags/linker.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [support](<https://devfeed.tech/tags/support.md>)

### AI overview

The LLVM Compiler Research team reviews seven intern projects focused on interactive C++ programming, including interpretive C/C++/CUDA, automatic differentiation, language interoperability, JITLink, and Clang-Repl. One highlighted project adds ELF/aarch64 and PE/COFF support to JITLink.

### Source excerpt

Another program year is ending and our Compiler Researchteam is extremely happy to share the hard work and the results of our internscontributors! The Compiler Research team includes researchers located at Princeton Universityand CERN.Our primary goal is research into foundational software tools helping scientiststo program for speed, interoperability, interactivity, flexibility, andreproducibility. We work in various fields of science such as high energyphysics, where research is fundamentally connected to software at exabyte scale.We develop computational methods and research software for scientificexploration and discovery. Our current research focuses on three main topics:interpretative C/C++/CUDA, automatic differentiation tools, and C++ language interoperability with Pythonand D. This year, we had six participants who worked on seven projects, covering a widerange of topics, from LLVM's new JIT linker(JITLink) toClang-Repl,an interactive C++ interpreter for incremental compilation integratedin Clang. All projects rise toward acommon, ambitious goal: to establish a proficient workflow in LLVM,where interactivedevelopment in C++ is possible, and exploratory C++ becomes an accessibleexperience to a wider audience. Below you can find the list of projects from our interns, an overview of theobjectives and results. We invite you to follow the links to access a moredetailed description of each project. JITLink support for a new format/architecture (ELF/AARCH64) Developer: Sunho Kim(Computer Science, De Anza College, Cupertino, California) Mentors: Stefan Gränitz (Freelance Compiler Developer, Berlin,Deutschland),Lang Hames (Apple), Vassil Vassilev (Princeton University/CERN) Funding: Google Summer of Code 2022 Suhno developed a JITLinkspecialization that extends JITLink's generic linker algorithm, allowingJITLink to support ELF/aarch64 target and provides full support of all advancedPE/COFF object file features. By supporting the ELF/aarch64 target, JITLink cannow be

## The Underrust: Rust's assembly output

DevFeed: [The Underrust: Rust's assembly output](<https://devfeed.tech/articles/the-underrust-rust-s-assembly-output-35480.md>)

Original publisher: [Read original article](<https://darkcoding.net/software/underrust-rust-assembly-output/>)

Author: Graham King

Published: 2022-08-31T07:00:00Z

Content type: tutorial

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [Rust](<https://devfeed.tech/topics/rust.md>), [Assembly](<https://devfeed.tech/topics/assembly.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>), [cpu](<https://devfeed.tech/topics/cpu.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [linker](<https://devfeed.tech/topics/linker.md>)

Tags: [assembly](<https://devfeed.tech/tags/assembly.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [cpu](<https://devfeed.tech/tags/cpu.md>), [linker](<https://devfeed.tech/tags/linker.md>), [linux](<https://devfeed.tech/tags/linux.md>), [llvm](<https://devfeed.tech/tags/llvm.md>), [optimize](<https://devfeed.tech/tags/optimize.md>), [performance](<https://devfeed.tech/tags/performance.md>), [rust](<https://devfeed.tech/tags/rust.md>), [software](<https://devfeed.tech/tags/software.md>), [underrust](<https://devfeed.tech/tags/underrust.md>)

### AI overview

This article introduces the Underrust series, which examines Rust programs through their generated assembly. It explains a repeatable setup using Rust on Linux with an Intel processor, a stripped-down program, LLVM optimizations, a custom entry point, and release builds to make assembly easier to inspect.

### Source excerpt

Assembly: In all the world of the programmer, there is no more important output.

## Tools we use: installing GDB for ARM

DevFeed: [Tools we use: installing GDB for ARM](<https://devfeed.tech/articles/tools-we-use-installing-gdb-for-arm-47273.md>)

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

Author: Noah Pendleton

Published: 2022-08-03T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [gdb](<https://devfeed.tech/topics/gdb.md>), [Arm](<https://devfeed.tech/topics/arm.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>), [gcc](<https://devfeed.tech/topics/gcc.md>), [linker](<https://devfeed.tech/topics/linker.md>), [Continuous integration](<https://devfeed.tech/topics/continuous-integration.md>), [Newlib](<https://devfeed.tech/topics/newlib.md>), [reproducible builds](<https://devfeed.tech/topics/reproducible-builds.md>)

Tags: [arm](<https://devfeed.tech/tags/arm.md>), [binaries](<https://devfeed.tech/tags/binaries.md>), [ci](<https://devfeed.tech/tags/ci.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [debugger](<https://devfeed.tech/tags/debugger.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [developers](<https://devfeed.tech/tags/developers.md>), [embedded](<https://devfeed.tech/tags/embedded.md>), [gdb](<https://devfeed.tech/tags/gdb.md>), [linker](<https://devfeed.tech/tags/linker.md>), [newlib](<https://devfeed.tech/tags/newlib.md>), [tools](<https://devfeed.tech/tags/tools.md>)

### AI overview

A practical guide to installing GDB with ARM support. It explains host and target architectures, compares installation strategies, and discusses prebuilt ARM toolchains, their included components, CI use, and Python compatibility considerations.

### Source excerpt

In this mini article, I'll be going on a few strategies and nuances around getting a copy of GDB installed for debugging ARM chips. Continue reading...

## What we've been reading in January (2022)

DevFeed: [What we've been reading in January (2022)](<https://devfeed.tech/articles/what-we-ve-been-reading-in-january-2022-47280.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/january-2022-roundup>)

Author: Tyler Hoffman

Published: 2022-02-01T00:00:00Z

Content type: article

Language: en

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

Topics: [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [software-development](<https://devfeed.tech/topics/software-development.md>), [linker](<https://devfeed.tech/topics/linker.md>), [static linking](<https://devfeed.tech/topics/static-linking.md>), [gdb](<https://devfeed.tech/topics/gdb.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [fpga](<https://devfeed.tech/topics/fpga.md>), [WebAssembly](<https://devfeed.tech/topics/web-assembly.md>), [GitHub Actions](<https://devfeed.tech/topics/github-actions.md>), [Unit testing](<https://devfeed.tech/topics/unit-testing.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>), [build times](<https://devfeed.tech/topics/build-times.md>)

Tags: [2022](<https://devfeed.tech/tags/2022.md>), [arduino](<https://devfeed.tech/tags/arduino.md>), [articles](<https://devfeed.tech/tags/articles.md>), [build-times](<https://devfeed.tech/tags/build-times.md>), [debug](<https://devfeed.tech/tags/debug.md>), [debugger](<https://devfeed.tech/tags/debugger.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [fpga](<https://devfeed.tech/tags/fpga.md>), [github-actions](<https://devfeed.tech/tags/github-actions.md>), [linker](<https://devfeed.tech/tags/linker.md>), [linux](<https://devfeed.tech/tags/linux.md>), [linux-kernel](<https://devfeed.tech/tags/linux-kernel.md>), [raspberry-pi](<https://devfeed.tech/tags/raspberry-pi.md>)

### AI overview

A January 2022 roundup of articles, videos, tools, and a job site relevant to embedded and firmware engineers. It covers static linking and linker behavior, WebAssembly, embedded Linux, Raspberry Pi storage performance, Linux on microcontrollers, embedded controllers, Linux kernel header build times, bootloader version reporting, GDB debugging for Arduino projects, and firmware unit testing with Ceedling and GitHub Actions CI.

### Source excerpt

Here are the articles, videos, and tools that we've been excited about this January. Continue reading...

## Pocket article: How to implement and use \`.noinit\` RAM

DevFeed: [Pocket article: How to implement and use \`.noinit\` RAM](<https://devfeed.tech/articles/pocket-article-how-to-implement-and-use-noinit-ram-47324.md>)

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

Author: Noah Pendleton

Published: 2021-11-23T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [Hardware](<https://devfeed.tech/topics/hardware.md>), [linker](<https://devfeed.tech/topics/linker.md>), [LLVM](<https://devfeed.tech/topics/llvm.md>)

Tags: [embedded](<https://devfeed.tech/tags/embedded.md>), [linker](<https://devfeed.tech/tags/linker.md>), [memory](<https://devfeed.tech/tags/memory.md>)

### AI overview

A tutorial on using a non-initialized SRAM region to retain embedded-system state across processor restarts. It explains typical embedded memory regions and configuring a dedicated RAM section with GNU-compatible linker scripts.

### Source excerpt

This pocket article will describe how a non-initialized region of memory works, how to implement it, and how it can be used in a typical embedded system. Continue reading...

## Peeking inside CMSIS-Packs

DevFeed: [Peeking inside CMSIS-Packs](<https://devfeed.tech/articles/peeking-inside-cmsis-packs-47203.md>)

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

Author: Noah Pendleton

Published: 2021-10-07T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [Arm](<https://devfeed.tech/topics/arm.md>), [Software](<https://devfeed.tech/topics/software.md>), [Zip](<https://devfeed.tech/topics/zip.md>), [C](<https://devfeed.tech/topics/c.md>), [linker](<https://devfeed.tech/topics/linker.md>), [Python](<https://devfeed.tech/topics/python.md>), [Terminal](<https://devfeed.tech/topics/terminal.md>), [Developer Tools](<https://devfeed.tech/topics/developer-tools.md>)

Tags: [arm](<https://devfeed.tech/tags/arm.md>), [article](<https://devfeed.tech/tags/article.md>), [c](<https://devfeed.tech/tags/c.md>), [command](<https://devfeed.tech/tags/command.md>), [datasheets](<https://devfeed.tech/tags/datasheets.md>), [documentation](<https://devfeed.tech/tags/documentation.md>), [linker](<https://devfeed.tech/tags/linker.md>), [python](<https://devfeed.tech/tags/python.md>)

### AI overview

A practical introduction to ARM CMSIS-Packs, covering their contents, how to download them with PyOCD, and how to locate files such as headers, linker scripts, and flash algorithms.

### Source excerpt

In this article, we'll take a look at what CMSIS-Packs are, and how they can be useful! Continue reading...

## From Zero to main(): How to Write a Bootloader from Scratch

DevFeed: [From Zero to main(): How to Write a Bootloader from Scratch](<https://devfeed.tech/articles/from-zero-to-main-how-to-write-a-bootloader-from-scratch-47269.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/how-to-write-a-bootloader-from-scratch>)

Author: François Baldassari

Published: 2019-08-13T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [boot](<https://devfeed.tech/topics/boot.md>), [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [firmware-update](<https://devfeed.tech/topics/firmware-update.md>), [Microcontroller](<https://devfeed.tech/topics/microcontroller.md>), [C](<https://devfeed.tech/topics/c.md>), [linker](<https://devfeed.tech/topics/linker.md>), [Security](<https://devfeed.tech/topics/security.md>), [Code](<https://devfeed.tech/topics/code.md>)

Tags: [bootloader](<https://devfeed.tech/tags/bootloader.md>), [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [firmware-update](<https://devfeed.tech/tags/firmware-update.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [implement](<https://devfeed.tech/tags/implement.md>), [linker](<https://devfeed.tech/tags/linker.md>), [microcontroller](<https://devfeed.tech/tags/microcontroller.md>), [security](<https://devfeed.tech/tags/security.md>)

### AI overview

A tutorial explaining why bootloaders are used in microcontroller firmware, how to implement a minimal bootloader, and how bootloaders support firmware updates, memory layout, and trusted boot.

### Source excerpt

In this post, we will explain why you may want a bootloader, how to implement one, and cover a few advanced techniques you may use to make your bootloader more useful. Continue reading...

## Get the most out of the linker map file

DevFeed: [Get the most out of the linker map file](<https://devfeed.tech/articles/get-the-most-out-of-the-linker-map-file-47260.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/get-the-most-out-of-the-linker-map-file>)

Author: Cyril Fougeray

Published: 2019-07-09T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [linker](<https://devfeed.tech/topics/linker.md>), [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [file](<https://devfeed.tech/topics/file.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>)

Tags: [arm](<https://devfeed.tech/tags/arm.md>), [binutils](<https://devfeed.tech/tags/binutils.md>), [build](<https://devfeed.tech/tags/build.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [file](<https://devfeed.tech/tags/file.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [gnu](<https://devfeed.tech/tags/gnu.md>), [linker](<https://devfeed.tech/tags/linker.md>), [map](<https://devfeed.tech/tags/map.md>)

### AI overview

A practical guide to linker map files for firmware engineers. It explains how map files reveal program symbols and memory usage, how to generate them with GNU binutils and ARM toolchains, and how to compare builds to understand unexpected increases in program size.

### Source excerpt

In this article, I want to highlight how simple linker map files are and how much they can teach you about the program you are working on. Continue reading...

## From Zero to main(): Demystifying Firmware Linker Scripts

DevFeed: [From Zero to main(): Demystifying Firmware Linker Scripts](<https://devfeed.tech/articles/from-zero-to-main-demystifying-firmware-linker-scripts-47270.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/how-to-write-linker-scripts-for-firmware>)

Author: François Baldassari

Published: 2019-06-25T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [linker](<https://devfeed.tech/topics/linker.md>), [C](<https://devfeed.tech/topics/c.md>), [Microcontroller](<https://devfeed.tech/topics/microcontroller.md>), [Compiler](<https://devfeed.tech/topics/compiler.md>), [toolchain](<https://devfeed.tech/topics/toolchain.md>)

Tags: [c](<https://devfeed.tech/tags/c.md>), [code](<https://devfeed.tech/tags/code.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [compiler](<https://devfeed.tech/tags/compiler.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [linker](<https://devfeed.tech/tags/linker.md>), [linking](<https://devfeed.tech/tags/linking.md>), [mcu](<https://devfeed.tech/tags/mcu.md>)

### AI overview

This tutorial explains how firmware linker scripts place functions and data in memory regions for an MCU program. It introduces linking, object files, symbols, external dependencies, and the assignment of addresses in the final binary.

### Source excerpt

Last time, we talked about bootstrapping a C environment on an MCU before invoking our main function. One thing we took for granted was the fact that functions and data end up in the right place in our binary. Today, we're going to dig into how that happens by learning about memory regions and linker scripts. Continue reading...

## GNU Build IDs for Firmware

DevFeed: [GNU Build IDs for Firmware](<https://devfeed.tech/articles/gnu-build-ids-for-firmware-47265.md>)

Original publisher: [Read original article](<https://interrupt.memfault.com/blog/gnu-build-id-for-firmware>)

Author: François Baldassari

Published: 2019-05-29T00:00:00Z

Content type: tutorial

Language: en

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

Topics: [Embedded Software Dev](<https://devfeed.tech/topics/embedded-software-dev.md>), [gcc](<https://devfeed.tech/topics/gcc.md>), [linker](<https://devfeed.tech/topics/linker.md>), [debugging](<https://devfeed.tech/topics/debugging.md>), [implementation](<https://devfeed.tech/topics/implementation.md>), [Linux](<https://devfeed.tech/topics/linux.md>)

Tags: [build](<https://devfeed.tech/tags/build.md>), [debugging](<https://devfeed.tech/tags/debugging.md>), [elf](<https://devfeed.tech/tags/elf.md>), [firmware](<https://devfeed.tech/tags/firmware.md>), [gcc](<https://devfeed.tech/tags/gcc.md>), [gnu](<https://devfeed.tech/tags/gnu.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [linker](<https://devfeed.tech/tags/linker.md>)

### AI overview

This tutorial explains how GNU Build IDs uniquely identify firmware binaries, distinguish builds across hardware variants, and match binaries with debug symbols. It covers enabling build IDs in GCC and linker-generated ELF files, then discusses bundling them into firmware binaries.

### Source excerpt

In this post, we demonstrate how to use the GNU Build ID to uniquely identify a build. We explain what the GNU build ID is, how it is enabled, and how it is used in a firmware context. Continue reading...

## Automatic Object Linkage, with Include Graphs

DevFeed: [Automatic Object Linkage, with Include Graphs](<https://devfeed.tech/articles/automatic-object-linkage-with-include-graphs-28618.md>)

Original publisher: [Read original article](<https://upcoder.com/19/automatic-object-linkage-with-include-graphs>)

Published: 2018-05-31T13:33:00Z

Content type: article

Language: en

Sources: [Thomas Young](<https://devfeed.tech/sources/thomas-young.md>)

Topics: [Compilers and Linkers](<https://devfeed.tech/topics/compilers-and-linkers.md>), [linker](<https://devfeed.tech/topics/linker.md>), [static linking](<https://devfeed.tech/topics/static-linking.md>), [Software Testing](<https://devfeed.tech/topics/software-testing.md>), [Test-driven development](<https://devfeed.tech/topics/tdd.md>), [test impact analysis](<https://devfeed.tech/topics/test-impact-analysis.md>)

Tags: [3d](<https://devfeed.tech/tags/3d.md>), [application](<https://devfeed.tech/tags/application.md>), [automatic](<https://devfeed.tech/tags/automatic.md>), [automatically](<https://devfeed.tech/tags/automatically.md>), [based](<https://devfeed.tech/tags/based.md>), [build](<https://devfeed.tech/tags/build.md>), [c](<https://devfeed.tech/tags/c.md>), [c-plus-plus](<https://devfeed.tech/tags/c-plus-plus.md>), [code-sharing](<https://devfeed.tech/tags/code-sharing.md>), [compilation](<https://devfeed.tech/tags/compilation.md>), [content](<https://devfeed.tech/tags/content.md>), [custom](<https://devfeed.tech/tags/custom.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [dll](<https://devfeed.tech/tags/dll.md>), [graphs](<https://devfeed.tech/tags/graphs.md>), [include](<https://devfeed.tech/tags/include.md>), [libraries](<https://devfeed.tech/tags/libraries.md>), [modular](<https://devfeed.tech/tags/modular.md>), [multiple](<https://devfeed.tech/tags/multiple.md>), [object](<https://devfeed.tech/tags/object.md>)

### AI overview

The article describes a custom build system that derives each target's link inputs from include relationships: including a header with a matching source file implies a dependency on that source, and analysis expands recursively from one or more root files. This can share object files across targets and produce leaner application and test builds than broad static library groupings, reducing manual project setup and recompilation. The approach assumes disciplined header/source pairs and headers that reflect actual use; bypassed headers can cause missing links, while headers with mostly inline code can pull in unnecessary objects. PathEngine disallows conditional include directives so headers can be analyzed once, but adopting the method required code changes and a custom build system. IDE integration trades off features: external build projects support dynamic targets and shared objects but can lose IntelliSense, while generated projects retain IDE features but do not update dynamically and do not share objects.

### Source excerpt

In this post I describe an alternative approach to sharing source code elements between multiple build targets. It's based on a custom build process I implemented at PathEngine for our C and C++ code-base (but the core ideas could also be relevant to other languages with compilation to object files). We'll need to enforce some constraints on the way the source code is set up, notably with regards to header file organisation, but can then automatically determine what to include in the link operation for each build target, based on a graph of include relationships extracted from the source files. The resulting dynamic, fine grained, object-file centric approach to code sharing avoids the need for problematic static library decomposition, and the associated 'false dependencies'. Motivation We need to work with a bunch of different build targets, at PathEngine. There's a run-time pathfinding dll, for example, but also a 3D content processing dll, a 3D testbed application, and so on, with a lot of source code shared between these different targets. The code was originally split into a set of (internal) static libraries, for this purpose. based on things like theme (e.g. 'Geometry.lib') or application layer ('PathEngine_Core.lib', 'PathEngine_Interface.lib'). Different targets could then share common source code by sharing these static libraries. This worked, as far as it goes, but something didn't feel right. The libraries weren't particularly modular, for one thing, and just felt like big old bags of object files that didn't really reflect the actual structure of the underlying code. A bigger problem was that, for any kind of prototyping work, I ended up having to link in a big chunk of the PathEngine source code, even where only some small part of this was really required. Unit testing was also difficult to setup, for a similar reason. Since throwing out the static libraries and switching to an alternative approach (as described in this post), prototyping and unit test

[Next page](<https://devfeed.tech/topics/linker.md?cursor=WyIyMDE4LTA1LTMxVDEzOjMzOjAwKzAwOjAwIiwgImMxOWQ1ZWI1LTVjNDgtNGNiZC1hYjU2LTViODdjM2Y4YjgxNiJd>)