https://github.com/fuhsnn/c_files
A collection of real-world single-file C programs for convenient compiler testing.
https://github.com/fuhsnn/c_files
amalgamation c single-file
Last synced: 4 months ago
JSON representation
A collection of real-world single-file C programs for convenient compiler testing.
- Host: GitHub
- URL: https://github.com/fuhsnn/c_files
- Owner: fuhsnn
- Created: 2024-11-17T13:04:10.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-02T10:12:40.000Z (about 1 year ago)
- Last Synced: 2025-07-02T11:26:56.512Z (about 1 year ago)
- Topics: amalgamation, c, single-file
- Language: C
- Homepage:
- Size: 8.27 MB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
A collection of self-contained, medium-sized real-world `.c` files for convenient compiler testing.
No guarantee other than the intended usage: `cc -S -o/dev/null`.
#### bzip2.c, gcc.c, gzip.c, oggenc.c
- From the original https://people.csail.mit.edu/smcc/projects/single-file-programs
#### chibicc.c
- https://github.com/rui314/chibicc cramped into a single file.
#### janet.c
- https://github.com/janet-lang/janet @v1.38.0
- Combined files created during normal build process. (`build/c/janet.c` + `build/c/shell.c` + `build/janet.h`)
#### minilua.c
- From https://github.com/edubart/minilua @536a134.
#### pdpmake.c
- From https://github.com/rmyorston/pdpmake @d024c0f with script from https://github.com/rmyorston/pdpmake/issues/69
#### puredoom.c
- From https://github.com/Daivuk/PureDOOM @48376dd. The `examples/Tests/tests.c` file is used.
#### sqlite3.c
- From SQLite 3.47.2 `make sqlite3.c`
#### wak.c
- From https://github.com/raygard/wak @e02236a
#### wuffs.c
- From https://github.com/google/wuffs @3387e19, `release/c/wuffs-v0.4.c`