Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Scrumplesplunge/aoc2020
Advent of Code 2020 solutions, in plain C, using no libraries, not even the standard library.
https://github.com/Scrumplesplunge/aoc2020
Last synced: 6 days ago
JSON representation
Advent of Code 2020 solutions, in plain C, using no libraries, not even the standard library.
- Host: GitHub
- URL: https://github.com/Scrumplesplunge/aoc2020
- Owner: Scrumplesplunge
- Created: 2020-11-30T23:24:21.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2023-08-14T20:12:37.000Z (about 1 year ago)
- Last Synced: 2024-08-02T16:35:06.690Z (3 months ago)
- Language: C
- Size: 674 KB
- Stars: 8
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code 2020
These are my solutions to Advent of Code 2020. To challenge myself, I am going
to try to solve every problem in plain C, with no libraries, using only `read`,
`write` and `exit` to interact with the outside world. Since I'm not using
a standard library, some parts of the code must necessarily be non-portable, so
I am assuming x86. The result of this overall approach is very tiny binaries:$ make opt
...
$ src/size.sh
day01 559
day02 659
day03 524
day04 1049
day05 404
day06 340
day07 1058
day08 1094
day09 897
day10 732
day11 1296
day12 980
day13 1316
day14 1384
day15 421
day16 1456
day17 1450
day18 920
day19 1068
day20 2612
day21 1494
day22 1191
day23 616
day24 696
day25 762
total 24978## Build
* `make`, `make debug` - build the debug versions of each solver.
* `make opt` - build the optimized versions.
* `make all` - build both debug and optimized versions of each solver.## Test
* `src/test.sh [debug|opt]` - Run all solvers with all available inputs.