Migrate from MSVC

I would like to migrate my project from MSVC to PGI Workstation. but I found that pgcpp misses lots of switches that MSVC/ICC have.
Is there a guideline that help migrating from other compilers?

Hi roytam1,

While we don’t have a porting document, please feel free to ask any question here on the PGI Users Forums. Myself or one of my colleagues will be happy to help.

Are you migrating an Intel Visual Studio project to Portland Visual Fortran (PVF)? Are the missing “switches” compiler options or are they PVF options?

  • Mat

I would like to migrate a C++ project (Makefile) to pgcpp and I found that some switches has different meaning/function in pgcpp and some switches don’t exist in pgcpp.
e.g.
/Gz __stdcall calling convention
/GS enable security checks

I know that pgcpp is not a drop-in replacement like what Intel C++ compiler does. But there’s no guideline helping people migrate from other compilers such as gcc/MSVC.

Hi roytam1,

For Fortran, stdcall is the default calling convention. For C/C++ you need to decorate your functions with “__stdcall”. Unfortunately, we don’t yet have a switch to do this.

We do not currently support the functionality of “/GS”.

  • Mat