Skip to content

Latest commit

 

History

History
executable file
·
10 lines (8 loc) · 314 Bytes

gcc.md

File metadata and controls

executable file
·
10 lines (8 loc) · 314 Bytes

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