diff options
author | Michael Forney <mforney@mforney.org> | 2019-05-15 17:47:25 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-05-15 17:58:37 -0700 |
commit | 68726abdaa443926b8a1d939a6224dd12597e6af (patch) | |
tree | 51e70a72920de751de3c7b65675677de01b7ab93 /doc | |
parent | 46ec9b869105951521341db5d5a75aa55b156601 (diff) |
Implement asm labels
Diffstat (limited to 'doc')
-rw-r--r-- | doc/extensions.md | 7 |
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. |