importC: __asm volatile parsing failure - issue or not?
Denis Feklushkin
feklushkin.denis at gmail.com
Mon Apr 1 18:02:33 UTC 2024
On Monday, 1 April 2024 at 00:18:15 UTC, Walter Bright wrote:
> On 3/31/2024 2:38 AM, Denis Feklushkin wrote:
>> "asm volatile" works as expected, but "asm" isn't C11 keyword
>
> "asm" is a C11 keyword, see C11.j.5.10
Really! I just got confused
Thank you!
> dmd doesn't support the gcc asm syntax, only the Microsoft &
> Digital Mars syntaxes.
>
> Usually, in header files with asm syntax, it can be disabled
> with an #ifdef.
This is just the opposite case: FreeRTOS code is full of asm
entries which isn't be able to disabled. But, preliminarily, a
simple mass replacement to "asm volatile" works for me
More information about the Digitalmars-d
mailing list