`asm()` on function declarations is used for specifying the mangling. But that specific spelling is a GNU extension unlike `__asm()`. Found by building with `-std=c2y` in Clang's C frontend's config file.
4 lines
157 B
C
4 lines
157 B
C
// Explicit mangling is necessary as on Darwin an underscore is prepended to the symbol.
|
|
int asm_main() __asm("asm_main");
|
|
int main() { return asm_main(); }
|