等同于Gfortran中的asm易变性? [英] Equivalent to asm volatile in Gfortran?

查看:131
本文介绍了等同于Gfortran中的asm易变性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  __ asm__ __volatile__(...)

在Gfortran中有相当于Gcc的内联程序集吗? / code>

我无法在gfortran手册页或手册中找到任何内容。

解决方案

不,没有。最简单的方法是使用 asm 创建C函数,然后使用ISO_C_BINDING调用该C函数。


Is there an equivalent to Gcc's inline assembly in Gfortran?

__asm__ __volatile__ (...)

I cannot find anything in the gfortran man page, or the manual.

解决方案

No, there isn't. The easiest way around it is to have a C function with the asm, and then call that C function with ISO_C_BINDING.

这篇关于等同于Gfortran中的asm易变性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆