Intermediate code resulting from OpenMP pragmas

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



source to share

1 answer

OpenMp pragmas is part of the C / C ++ compiler implementation. So before using it you need to make sure your compiler will support pragmas! If they are not supported, they are ignored, so you cannot get compilation errors, but multithreading does not work. In any case, as mentioned above, since they are part of the compiler implementation, the best intermediate result you can get is lower level code. OpenMp is a language extension + libraries, macros, etc., the opposite of Pthreads that arm you with pure libraries!



All Articles