中间code作为OpenMP编译的结果 [英] Intermediate Code as a result of OpenMP pragmas

查看:118
本文介绍了中间code作为OpenMP编译的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法让我的手由OpenMP编译产生的中间源$ C ​​$ C?
我想看看每种编译指示的翻译。

Is there a way to get my hands on the intermediate source code produced by the OpenMP pragmas? I would like to see how each kind of pragmas is translated.

干杯。

推荐答案

OpenMP编译是一个C / C ++编译器实现的一部分。因此在使用它之前,你需要确保你的编译器将支持编译指示!如果他们不支持,那么他们将被忽略,所以你可能在编译没有错误,但多线程不会工作。在任何情况下,如以上所提到的,因为它们是编译器的实现的一部分,最好中间结果可以得到的是一个较低的水平code。 OpenMP是语言扩展+库,宏等反对Pthreads中的武器,你纯粹是与图书馆!

OpenMp pragmas is part of a C / C++ compiler's implementation. Therefore before using it, you need to ensure that your compiler will support the pragmas ! If they are not supported, then they are ignored, so you may get no errors at compilation, but multi-thread wont work. In any case, as mentioned above, since they are part of the compiler's implementation, the best intermediate result that you can get is a lower level code. OpenMp is language extension + libraries, macros etc opposed to Pthreads that arms you purely with libraries !

这篇关于中间code作为OpenMP编译的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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