time-to-botec/C/samples/build-and-run.sh
NunoSempere 57fc886bed feat: More progress
- Add C
- Time the different languages.
- Wrap Squiggle in a js runtime.
2022-12-01 15:04:37 +00:00

16 lines
410 B
Bash
Executable File

#!/bin/bash
root="$1"
gcc -std=c99 -Wall -lm "$root".c -o "$root" -I/usr/local/include -L/usr/local/lib -lgsl -lgslcblas -lm -g
# Link libraries, for good measure
LD_LIBRARY_PATH=/usr/local/lib
export LD_LIBRARY_PATH
# Increase stack size limit
ulimit -Ss 256000
# -Ss: the soft limit. If you set the hard limit, you then can't raise it
# 256000: around 250Mbs, if I'm reading it correctly.
# run
./samples