From 68726abdaa443926b8a1d939a6224dd12597e6af Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Wed, 15 May 2019 17:47:25 -0700 Subject: Implement asm labels --- doc/extensions.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'doc') 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. -- cgit v1.2.3