Compiling mainframe C++ code on Windows



Help for C/C++ for MVS, OS/390 C/C++, z/OS C/C++ and C/C++ Productivity Tools for OS/390

Compiling mainframe C++ code on Windows

Postby saurabh.gandhi » Fri Oct 10, 2008 12:33 pm

Hi Everyone,

I have started working on a new project. This project involves rewriting an application written in assembly language for z/OS. We are writing this application in ANSI C++ (STL included). However to speed up the development process, we are developing the application in Microsoft Visual Studio 2005 on Win XP SP2. We are taking every precaution not to use any micorosft specific features in our application (to prevent issues of compilation when the application code is later taken to mainframe).

Is there any way that I can compile my programs on Visual Studio but the compilation actually happens for the mainframe platform, just to be sure that later on there are no issues?
saurabh.gandhi
 
Posts: 1
Joined: Fri Oct 10, 2008 12:23 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Compiling mainframe C++ code on Windows

Postby dick scherrer » Fri Oct 10, 2008 12:56 pm

Hello and welcome to the forums,

Is there any way that I can compile my programs on Visual Studio but the compilation actually happens for the mainframe platform
No (not that i'm aware of). The MS Visual Studio environment is completely self-contained (intentioinally) and creates executable for the Win-based environment.

The output of a mainframe compile/assembly is an executable that is mainframe specific.

The closest that i believe you could do fairly easily is to code/test in MS and when you are ready to test on the mainframe, upload the source and re-compile & link on the mainframe.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6268
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 93 times

Re: Compiling mainframe C++ code on Windows

Postby napanap » Tue Jan 27, 2009 7:47 am

saurabh.gandhi wrote:Is there any way that I can compile my programs on Visual Studio but the compilation actually happens for the mainframe platform, just to be sure that later on there are no issues?


IBM has a product called RDz (Rational Developer for System z) which does something like this. The development environment (based on Eclipse not Visual Studio) runs on Windows but the compilation is actually done on the mainframe.
napanap
 
Posts: 7
Joined: Tue Jan 27, 2009 7:12 am
Has thanked: 0 time
Been thanked: 0 time

Re: Compiling mainframe C++ code on Windows

Postby rivers » Sat Aug 28, 2010 12:17 am

Yes - you can use Dignus tools under Visual Studio to do IBM C/C++ compiles.

We have "IBM compatibilty mode", where the compilers accept the IBM C/C++ syntax
and match the IBM generated object. The resulting files can be linked with the IBM LE C/C++
runtime and run just as if the IBM compiler had compiled them. Thus, you can do
your compiles directly under Visual Studio to build your mainframe programs.

We also have plug-ins for RDz.

See http://www.dignus.com
rivers
 
Posts: 3
Joined: Tue Aug 24, 2010 9:28 pm
Has thanked: 0 time
Been thanked: 0 time


Return to C, C++

 


  • Related topics
    Replies
    Views
    Last post