how to write a nop in c

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to write a nop in c

1,941 Views
momo12
Contributor III

Hi

how do I wrrite a nop in C? (c intrinsics)

__no_operation() and asm("nop") didnt work.

In which document would I find this?

Thx

3 Replies

1,649 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

In S32DS, I use

__asm__("NOP");

Regards,

Daniel

1,649 Views
momo12
Contributor III

where is the documentation for things like that?

0 Kudos

1,649 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

You may refer to Document arm_pdf_reference.pdf
In the S32DS installation folder …\S32DS_ARM_v2018.R1\S32DS\help\pdf\

pastedImage_1.png

pastedImage_2.png

More information can be found here:
https://gcc.gnu.org/onlinedocs/gcc/Extended-Asm.html

Regards,
Daniel

0 Kudos