Pragma
is part of C Standard.
The `#pragma' directive is the method specified by the C standard for providing additional information to the compiler, beyond what is conveyed in the language itself. Three forms of this directive (commonly known as pragmas) are specified by the 1999 C standard. A C compiler is free to attach any meaning it likes to other pragmas.
DO we need to make any changes in order to work them fine or they will be working fine without any changes.?
You are using different compilers. so there will be some changes required. for example GCC provides it's own pragmas,
#pragma GCC dependency
#pragma GCC poison
#pragma GCC system_header
#pragma GCC warning
#pragma GCC error
While porting to some other platform which uses different compiler then these things should be considered. I suggest you to study the compiler documentation.
Refer these discussions
Use of #pragma in C
What code have you written with #pragma you found useful?
Can anyone please tell me the use of pragma statements