Files
aoc/README.md
2024-12-06 23:59:25 +01:00

699 B

AOC

What is AOC??: adventofcode

All this is a mix of langs, but in general:

  • asm: I use nasm, at least for now for assembly programs (linux, x86_64), no special linking normallly, so just elf64 compile and link.
  • zig: No need to set up a full project, simply zig build-exe -O ReleaseFast -fsingle-threaded -fno-unwind-tables -fno-error-tracing -fno-formatted-panics -fstrip -fno-stack-protector main.zig for max performance.
  • rust: No need for projects neither, also rustc -Copt-level=3 -Ctarget-cpu=native -Cpanic=abort -Cstrip=symbols -Coverflow_checks=n -Clto=fat for squeezing performance.

I also tend to use perf stat to check their performance.