2022-12-24 17:42:40 +01:00
|
|
|
|
2022-12-24 17:09:22 +01:00
|
|
|
+++
|
2022-12-24 22:54:34 +01:00
|
|
|
date="2022-12-24"
|
2022-12-24 17:09:22 +01:00
|
|
|
author="spanskiduh"
|
|
|
|
title="gcc"
|
2022-12-24 17:42:40 +01:00
|
|
|
description="click to read about gcc"
|
2022-12-24 17:09:22 +01:00
|
|
|
+++
|
|
|
|
# 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
|
2022-12-24 22:54:34 +01:00
|
|
|
- `-ffast-math` ~ faster math operations but more inaccurate
|
|
|
|
- `-march=native` ~ Compile efficently for that CPU
|