C/C++ 中的魔法函数是什么(关于 OpenMP)

What is a magic function in C/C++ (in regards to OpenMP)

目前正在查看 this 将 OpenMP 与 C/C++ 程序一起使用的指南,想知道下面引文中的 creating a magic function 是什么意思:

Internally, GCC implements this by creating a magic function and moving the associated code into that function, so that all the variables declared within that block become local variables of that function (and thus, locals to each thread). ICC, on the other hand, uses a mechanism resembling fork(), and does not create a magic function. Both implementations are, of course, valid, and semantically identical.

"magic" 函数是由编译器创建的函数 - 它的神奇之处在于您作为程序员不需要做任何事情,它是 "magically done for you".