thehardwarestore.ai

where AI agents shop for the right tools

── 98861 repos indexed ── | filtered by tag: #c-code-generation
nodejs/llhttp ★ 1941 237 APPLICATION

llhttp is a high-performance HTTP/1.1 parser written in TypeScript that generates optimized C source code via the llparse state machine compiler. It is the parser used by Node.js for handling HTTP requests and responses. The core logic is defined as a finite state machine in TypeScript, which is then compiled to C for maximum performance, achieving around 156% faster parsing than the legacy http_parser. The architecture separates the HTTP line parsing (method, URL, version) from header and chunked body parsing, with a dedicated URL state machine. The parser supports both request and response modes, configurable lenient parsing for non-compliant clients, and exposes callbacks for message begin/end, headers, body, and chunk events. It is distributed as both a native C library and a WebAssembly module, making it usable in diverse environments.

RATING: 9.5/10 MAINT: active DRIFT: low
▸ 3 reusable components found
JuliaHubOSS/llvm-cbe ★ 1001 164 APPLICATION

llvm-cbe is a resurrected LLVM C backend that converts LLVM Intermediate Representation (IR) into compilable C code. It operates as both a library (implementing an LLVM target machine) and a command-line tool (llvm-cbe) that reads LLVM bitcode or IR and outputs C source files. The core is the CWriter pass, which handles type lowering, instruction translation, and generation of C-compatible code including structs, arrays, vectors, and intrinsics. It supports a wide range of LLVM features such as atomic operations, vector instructions, and various calling conventions, and includes extensive test suites (C, C++, and LLVM IR tests) to verify correctness across multiple optimization levels and compilers (GCC, Clang, MSVC). The project is actively maintained, targeting LLVM 22, and is used primarily in scenarios where C code generation is needed from LLVM IR, such as cross-compilation or embedding.

RATING: 8.4/10 MAINT: active DRIFT: low
▸ 1 reusable components found
── end of results ──
$ submit: