spanskiblog/content/posts/gcc.md

17 lines
411 B
Markdown

+++
date="2022-12-24"
author="spanskiduh"
title="gcc"
description="click to read about gcc"
+++
# GCC
### compilation flags
- `-g` ~ enable debugging mode (for gdb to show running c code also)]
- `-Wall` ~ enable all warnings
- `-o binary` ~ output to binary file
- `-S` ~ also compile asm file
- `-ffast-math` ~ faster math operations but more inaccurate
- `-march=native` ~ Compile efficently for that CPU