aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/development/gcc.md9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/development/gcc.md b/src/development/gcc.md
index f64bc2a..d3823f3 100644
--- a/src/development/gcc.md
+++ b/src/development/gcc.md
@@ -11,6 +11,15 @@ gcc -E [-dM] ...
- `-E` run only preprocessor
- `-dM` list only `#define` statements
+### Target options
+```bash
+# List all target options with their description.
+gcc --help=target
+
+# Configure for current cpu arch and query (-Q) value of options.
+gcc -march=native -Q --help=target
+```
+
## [Builtins][builtins]
### `__builtin_expect(expr, cond)`