advent2025

Advent of Code 2025 Solutions
git clone git://bsandro.tech/advent2025
Log | Files | Refs | README | LICENSE

README (1085B)


      1 Advent of Code 2025 solutions.
      2 
      3 License: BSD 2-Clause.
      4 Language: C
      5 Requirements: C99-conformant compiler, GNU make. Day 10 part 2 requires GLPK library.
      6 
      7 Each .c file contains both parts of the corresponding day puzzle.
      8 
      9 Day 10 has to be built with GLPK=1 env variable, e.g.
     10 GLPK=1 make day10
     11 
     12 Day 11 built with clang v19.1.7 on NetBSD i386 crashes with memory error if built with -O2 or -O3 option. -O1 works fine.
     13 
     14 Couldn't build day 10 on CM3+ because of missing GLPK library in my setup there.
     15 
     16 Tested on different architectures and operating systems: 
     17 
     18 - amd64: Ryzen 3900X with Fedora 43
     19 - i386: Celeron 633MHz (Coppermine, socket370) with NetBSD 10.1
     20 - riscv64: Starfive VisionFive 2 board with Debian Bookworm/sid
     21 - ppc32: PowerPC G4 1.33GHz (iBook G4) with MacOS X 10.5.8
     22 - arm64: Pinebook Pro with Manjaro-ARM 24.03
     23 - arm32: Raspberry Pi CM3+ Lite 1.2GHz with old raspbian
     24 
     25 On macppc I've used both gcc6 and gcc-mp-14 from ports on OSX; gcc6 binaries are slower.
     26 
     27 Saved run times for posterity in runtimes.txt, there is a gnuplot script (runtimes.plt) to make visualization.