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')]
[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