gcc

Tag

Cards List
#gcc

My C23 Conventions

Lobsters Hottest ↗ · 6d ago Cached

作者分享了在 C23 标准下采用的三种现代 C 编码约定,包括使用 [[nodiscard]] 与 [[maybe_unused]] 处理未使用返回值、C23 中 union 初始化行为的变化,以及借助 auto 简化代码的新模式。

0 favorites 0 likes
#gcc

your c is not standard c

Lobsters Hottest ↗ · 2026-10-12 Cached

一篇技术博客文章,列举了标准 C 与 gcc/clang + glibc/musl 实际行为之间的多种不兼容之处,包括 asm 关键字、FLT_ROUNDS、标准 pragma 未实现以及 initstate 错误处理等问题。

0 favorites 0 likes
#gcc

Syncing Rust GCC backend or how to test Murphy's law

Lobsters Hottest ↗ · 2026-09-28 Cached

This blog post details the complex process of syncing the Rust GCC backend repository with Rust's main repository using git subtree, and the many issues that arose, illustrating Murphy's law.

0 favorites 0 likes
#gcc

Implementation of GCC's Nested Functions (vs. C++ Lambdas)

Hacker News Top ↗ · 2026-09-05 Cached

This article explains GCC's implementation of nested functions by creating a synthetic structure for parent variable access, comparing it to C++ lambdas in a technical blog post.

0 favorites 0 likes
#gcc

@UseSirdab: We’ve raised a $10𝐌 Series A, co-led by 𝐄𝐥𝐦 and 𝐁𝐄𝐂𝐎 𝐂𝐚𝐩𝐢𝐭𝐚𝐥, following previous rounds backed by 𝐘 𝐂�…

X AI KOLs Following ↗ · 2026-09-03 Cached

Sirdab has raised $10M in Series A funding led by Elm and BECO Capital to scale its logistics platform across Saudi Arabia and the GCC, having grown revenue 20x and reached profitability since YC W23.

0 favorites 0 likes
#gcc

Indirect Calling of Nested Functions on GCC Without Executable Stack

Hacker News Top ↗ · 2026-08-29 Cached

The article presents a technique to indirectly call nested functions in GCC without an executable stack by reading pointers from trampolines, suitable for older GCC versions, and implemented in the noplate library.

0 favorites 0 likes
#gcc

Adding JIT-compilation to a toy interpreter with libgccjit

Lobsters Hottest ↗ · 2026-08-24 Cached

This tutorial demonstrates how to add JIT-compilation to a simple stack-based interpreter using libgccjit, with code examples and explanations.

0 favorites 0 likes
#gcc

Tail-call optimization in C is relatively recent

Hacker News Top ↗ · 2026-08-10 Cached

A LWN comment discusses the relatively recent implementation of tail-call optimization in C compilers, citing historical limitations and noting that modern GCC and Clang now support it, with potential benefits for interpreter implementations.

0 favorites 0 likes
#gcc

an ambiguity in c89 which will never be fixed

Lobsters Hottest ↗ · 2026-08-10 Cached

A blog post examines an ambiguity in the C89 standard about implicit function declarations, where GCC and Clang disagree on interpretation, leading to different compile results for certain code.

0 favorites 0 likes
#gcc

Progress toward compiling Linux with gccrs

Lobsters Hottest ↗ · 2026-07-30 Cached

The gccrs project, creating a Rust frontend for GCC, has made progress toward compiling the Linux kernel, resolving issues in attribute handling, name resolution, and resource management, and reorganizing development milestones.

0 favorites 0 likes
#gcc

GCC steering committee announces AI policy

Hacker News Top ↗ · 2026-07-30 Cached

The GCC steering committee has accepted an AI contributions policy that will decline legally significant contributions containing LLM-generated content, with exceptions for test cases, while allowing LLM use for research and analysis.

0 favorites 0 likes
#gcc

Seriously, what is the large code-model even for?

Lobsters Hottest ↗ · 2026-07-27 Cached

The article explores the limitations of GCC's large code model (mcmodel=large), particularly its inability to handle Thread Local Storage (TLS) with 32-bit relocations, making it unusable for truly large binaries despite its stated purpose.

0 favorites 0 likes
#gcc

the perils of parsing type inference declarations in c

Lobsters Hottest ↗ · 2026-07-25 Cached

This blog post explores parsing ambiguities in C23 involving `auto` as a type inference specifier or storage-class specifier, showing how GCC and Clang disagree on parsing declarations like `auto x = 67;` when `x` is a typedef, and how attributes complicate the situation.

0 favorites 0 likes
#gcc

Building GCC 1.27 (2019)

Hacker News Top ↗ · 2026-07-22 Cached

A blog post describes the process of building GCC 1.27, a 1988 compiler, on a modern Ubuntu system, detailing necessary patches and steps.

0 favorites 0 likes
#gcc

Building an AmigaOS Development Environment in 2026

Lobsters Hottest ↗ · 2026-07-20 Cached

A practical guide to setting up an AmigaOS development environment on Linux, covering toolchain installation, emulation, and remote debugging.

0 favorites 0 likes
#gcc

Using GCC's Nested Functions with Wide Pointers and no Trampolines II

Lobsters Hottest ↗ · 2026-07-17 Cached

GCC 16 ensures nested functions that don't capture variables require no trampolines, improving security. GCC 17 introduces built-in functions to avoid trampolines even for captured nested functions, using wide pointers and static chain registers.

0 favorites 0 likes
#gcc

Computed goto for efficient dispatch tables (2012)

Hacker News Top ↗ · 2026-06-17 Cached

Explains the use of GCC's computed goto extension to improve the performance of bytecode VM dispatch tables compared to traditional switch statements, with a simple example.

0 favorites 0 likes
#gcc

Rotation revisited: A shocking discovery about gcc’s unidirectional rotation algorithm

The Old New Thing (Raymond Chen) ↗ · 2026-06-03 Cached

Raymond Chen explores gcc libstdc++'s rotation algorithm for random-access iterators, revealing it is fundamentally the same as the forward-iterator rotation algorithm, just viewed from a different perspective. The post is part of a series comparing rotation implementations across compilers.

0 favorites 0 likes
#gcc

BPF support in GCC 16 and beyond

Lobsters Hottest ↗ · 2026-06-02 Cached

José Marchesi and the GCC-BPF team provided an update on BPF support in GCC 16, highlighting progress toward feature parity with LLVM and increasing pass rate of the kernel's BPF self-tests.

0 favorites 0 likes
#gcc

On C extensions, portability, and alternative compilers

Lobsters Hottest ↗ · 2026-05-25 Cached

This article discusses the practical challenges of writing portable C code due to reliance on non-standard compiler extensions and glibc's conditional headers, illustrating with examples from building a C compiler.

0 favorites 0 likes
Next →
← Back to home

Submit Feedback