From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7972cb596f5c5a22 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed.arcor.de!newsspool2.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Porting Ada code to Linux Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <1162304266.131951.152900@e64g2000cwd.googlegroups.com> <1162316294.922457.113520@h48g2000cwc.googlegroups.com> Date: Wed, 1 Nov 2006 10:03:24 +0100 Message-ID: <6xu19avs6b2g$.mc4znng95yh0$.dlg@40tude.net> NNTP-Posting-Date: 01 Nov 2006 10:03:24 CET NNTP-Posting-Host: f9ef5297.newsspool1.arcor-online.net X-Trace: DXC=?mT7nVoFZj3^cW`WBF>WQ4Fo<]lROoR1^YC2XCjHcb9GYX3fBd>A40DNcfSJ;bb[5FCTGGVUmh?4N\HXHJ4e80>3aJHlfF8M2= X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:7317 Date: 2006-11-01T10:03:24+01:00 List-Id: On 31 Oct 2006 09:38:14 -0800, Howard wrote: > I work with Bill, and I wanted to provide a more detailed expansion of > our situation; > > We are porting from a Windows-95 "legacy" system to a new Linux one. > The code we are re-writing is Visual Basic, and we are translating it > into C++. But, the VB code had a dependancy on a considerable amount > of Ada 95 code that the VB code interfaced with via DLLs. > > We need to port this Ada code over, also. We have decided, given that > there is between 45 and 55 thousand lines of Ada code, with its > attendant complexity, to simply use the Ada code as is without > re-writing it into C++. This Ada code depends on some files, also > written in Ada, that then have some pragmas to a Visual C++ library, > "winbase.h"... > > The Ada libs are; > > Win32 > Win32-Utils > Win32-Winbase (pragmas to VCPP winbase.h lib) > Win32-Windef > Win32-Winnt OK, that's Windows API interface. It is not language issue. Depending on what was used in the application, there might be no chance to port it at all. It is not Ada, but an OS-specific problem. Honestly, I know no way to port, say, Window's SendMessage to Linux. It is just a totally different architecture. Firstly you need Windows expertise. Your question suggests that you don't have it. This makes the chances even lower than zero. So, probably, as others have proposed, you should redesign the program with OS-portability in mind. Ada offers you an excellent support here. There is another option, not mentioned before. I can't tell how realistic it is, but anyway, there are Windows emulators for Linux. Wine is one. I never used Wine, but it looks that apart from its main purpose of being a Windows emulator, Wine also supports porting [for lazy ones (:-))]. I'd suggest you to take a look at Winelib http://www.winehq.org/site/docs/winelib-guide/index -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de