Skip to content

Instantly share code, notes, and snippets.

View balping's full-sized avatar
🦊
https://gitlab.com/balping

Balázs Dura-Kovács balping

🦊
https://gitlab.com/balping
View GitHub Profile
@balping
balping / get-cflags.sh
Last active May 19, 2022 19:11 — forked from alexdelorenzo/get-cflags.sh
Get native CFLAGS for your host device. This will list the flags that are enabled on your hardware that are not enabled on the parent arch. https://alexdelorenzo.dev/notes/cflags
#!/usr/bin/env bash
# See: https://alexdelorenzo.dev/notes/cflags
# License: AGPLv3
export detectedArch="$(gcc -march=native -Q --help=target | grep march | awk 'NR==1{print $2}')"
export arch="${1:-$detectedArch}"
get-diff() {
diff \
<(gcc -march=native -mtune=native -Q --help=target) \
@balping
balping / instructions.md
Created May 3, 2018 15:36
Setting up PRIZM developement environment