GNU Pascal Homepage - gpc - gpc-announce - gpc-de - gpc-doc
Diese Seite auf deutsch

Mail #11662

Back to main page of archive

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  

From: Angelo.Fumagalli@alcatel.it
Subject: Porting from Dec Pascal to GPC
Date: 3 Mar 2005, 17:28:39

Hi,

we are going to port thousand and thousand of Dec Pascal modules to GPC in order to migrate software from VMS to Linux platform.
We know that here there are  the maximum experts to ask for, so we would like to ask you wich is the better model to migrate Dec environment modules maintaining the structure in terms of files and references, without having to completely change the source code, without splitting the procedure declarations and moving them in the library implementation modules. Have you some documentation which describes how to porting from Dec pascal to GPC that you could supply us? 

A litte DEC Pascal environment example:

1.  environmet file me.pas

MODULE ME;
procedure p1; extern;
procedure p2; extern;
.......
procedure pn; extern;

END.

2. library module m1.pas .. mn.pas
    NOTE:: typically all library modules which implement global procedures defined in the environment file me.pas are in the following format:

[INHERIT('me')]
MODULE m1;
[global]
procedure p1;
begin
....
end;
END.

3. Program module p.pas:

[INHERIT('me')]
PROGRAM P;
begin
  p1;
  p2;
  ...
  pn;
END.

Modules migration to GPC (is this one the only possible migration?):

1.  library modules m1.pas .. mn.pas

module m1 interface;
export m1 = all;
procedure p1; forward;
end.
module m1 implementation;
  procedure p1;
  begin
  ...
  end;
end.

2. program module p.pas

program p;
import lbbp1: lbbp2; ... lbbpn;
begin
  p1;
  p2;
  ...
  pn;
end.

Otherwise, it's possible to have the same DEC Pascal file/module structure? I mean only one interface module (me.pas) which is imported/used in all library and Program modules?

Thank you very much in advance for your help.

Kind regards.

       Angelo Fumagalli

File attachment

Previous mail   Next mail   Unformatted/full headers
Overview  10 days   Subject   Date   Thread   Author  


Replies

Author Subject Date
Frank Heckenbach Porting from Dec Pascal to GPC 4 Mar 2005, 06:38:45
Grant Jacobs Porting from Dec Pascal to GPC 4 Mar 2005, 22:01:20

Back to main page of archive


Note: This page contains information that does not originate from the owner of this web site, but from the authors of the mails archived. The owner of this web site is not responsible for the content of such information. Any use of that infomation requires the consent of the respective author.

Where WWW addresses (URLs) in the mails archived are marked as hyperlinks, this is only for the comfort of the reader. The content of the web pages linked to like this does not necessarily reflect the opinion of the owner of this web site or of the authors of the mails archived. The owner of this web site is not responsible for the content of such web pages. Those pages are explicitly not to be considered as part of the content of this page, but merely as references.


This page was created by Crystal 0.999 (Linux 2.4.27/i686).