Target Attributes (The GNU D Compiler)

#### 2.1.4 Target-specific Attributes ¶

Many targets have their own target-specific attributes. These are also exposed via the `gcc.attributes` module with use of the generic `@(gcc.attributes.attribute)` UDA function.

See Attribute Syntax, for details of the exact syntax for using attributes.

See the function and variable attribute documentation in the GCC manual for more information about what attributes are available on each target.

Examples of using x86-specific target attributes are shown as follows:

    import gcc.attributes;

    @attribute("cdecl")
    @attribute("fastcall")
    @attribute("ms_abi")
    @attribute("sysv_abi")
    @attribute("callee_pop_aggregate_return", 1)
    @attribute("ms_hook_prologue")
    @attribute("naked")
    @attribute("regparm", 2)
    @attribute("sseregparm")
    @attribute("force_align_arg_pointer")
    @attribute("stdcall")
    @attribute("no_caller_saved_registers")
    @attribute("interrupt")
    @attribute("indirect_branch", "thunk")
    @attribute("function_return", "keep"))
    @attribute("nocf_check")
    @attribute("cf_check")
    @attribute("indirect_return")
    @attribute("fentry_name", "nop")
    @attribute("fentry_section", "__entry_loc")
    @attribute("nodirect_extern_access")