aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
Diffstat (limited to 'doc')
-rw-r--r--doc/extensions.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/doc/extensions.md b/doc/extensions.md
index e3f9085..9a7b81d 100644
--- a/doc/extensions.md
+++ b/doc/extensions.md
@@ -11,6 +11,13 @@ may be implemented in the future.
and function designator expressions do not decay into pointers, just
like when used with `sizeof`.
+### `__asm__` labels
+
+A declarator can be followed by `__asm__("somelabel")` to specify the
+assembler name of the object or function. This name is taken literally, so
+the resulting symbol will not be mangled according to the target's usual
+rules. The name may contain characters not allowed in regular identifiers.
+
### Built-in functions and types
- **`__builtin_alloca`**: Allocate memory on the stack.