JP Hutchinsblog.jphutchins.com·Dec 17, 2024Enum Type Safety in CThe C standard allows the programmer to define new types, including enumerated types—or "enums"—that improve program readability and type safety. This article explores the specification for enumerated types, the compiler options that improve enum typ...28 readsC
Chris Dourisdigitalcreations.hashnode.dev·Jun 21, 2024Jumping Ball ProgressI need to post more updates on my progress. I learned how to use CMake's install features to create an installation folder with header files and dynamic libraries. It took me a while to figure out because CMake's documentation can be unclear at times...Jumping BallC
Retrieverretriever.hashnode.dev·Jul 7, 2023Weekly Questions 01-July-07-JulyC2Rust和GCC和Clang的关系 Clang 是一个基于 LLVM 架构的 C/C++/Objective-C 编译器,能生成高质量的代码并支持多种现代编程语言特性。 这意味着 C2Rust 并不直接使用 GCC 或 Clang 进行编译,而是利用了 Clang 的一些能力来解析和理解 C 代码,从而能够将其转换为 Rust 代码。 在实际使用 C2Rust 时,用户首先需要有一个预先编译的 C 项目。C2Rust 接下来会使用 Clang 来分析这个项目的源代码,生成抽象语法树(AST)...weekly dev journal