how to write a nop in c

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to write a nop in c

3,669 次查看
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 回复数

3,377 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

In S32DS, I use

__asm__("NOP");

Regards,

Daniel

3,377 次查看
momo12
Contributor III

where is the documentation for things like that?

0 项奖励
回复

3,377 次查看
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 项奖励
回复