Recent

Author Topic: VMS PASCAL compiler mode  (Read 6335 times)

richardapthorp

  • Newbie
  • Posts: 1
VMS PASCAL compiler mode
« on: October 24, 2014, 11:04:28 am »
Porting a large project running on the VMS operating system written in Pascal to Linux and Free Pascal.
However there is no compiler switch for HP VMS Pascal. Would be really useful if just the main syntax differences could be catered for eg: Specifying parameter names in procedure calls (instead of overload) - I could provide a list.
Noticed GNU Pascal has such a compiler switch.
Anyway in the middle of writing a pre-processor to make the syntax changes but wondering if anybody has done something similiar?
HP having just announced VMS retirement after 35 years there must be a lot of HP Pascal around some of which will need to be ported!

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: VMS PASCAL compiler mode
« Reply #1 on: October 24, 2014, 11:16:37 am »
If you don't get an answer here, I'd suggest posting on the fpc-devel list as that is where a lot of fpc developers are subscribed...
Not all of them would read this forum.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: VMS PASCAL compiler mode
« Reply #2 on: October 24, 2014, 11:19:21 am »
No, in general there is not much "old unix" (mainframe, commercial unices) pascal activity here. Probably also since GPC seemed to specialize in it. Most ISO features were done by core members. (trunk FPC supports more of ISO 7185 than release versions)


P.s. what is John Reagan doing nowadays? We always can use committers :-)

jwdietrich

  • Hero Member
  • *****
  • Posts: 1232
    • formatio reticularis
Re: VMS PASCAL compiler mode
« Reply #3 on: October 24, 2014, 11:58:38 am »
No, in general there is not much "old unix" (mainframe, commercial unices) pascal activity here.

VMS is not Unix.
function GetRandomNumber: integer; // xkcd.com
begin
  GetRandomNumber := 4; // chosen by fair dice roll. Guaranteed to be random.
end;

http://www.formatio-reticularis.de

Lazarus 2.2.6 | FPC 3.2.2 | PPC, Intel, ARM | macOS, Windows, Linux

BigChimp

  • Hero Member
  • *****
  • Posts: 5740
  • Add to the wiki - it's free ;)
    • FPCUp, PaperTiger scanning and other open source projects
Re: VMS PASCAL compiler mode
« Reply #4 on: October 24, 2014, 12:29:14 pm »
Nor is a mainframe. Unless you're talking about whatever name IBM now has for Unix System Services but even that runs on Z/OS.
Want quicker answers to your questions? Read http://wiki.lazarus.freepascal.org/Lazarus_Faq#What_is_the_correct_way_to_ask_questions_in_the_forum.3F

Open source including papertiger OCR/PDF scanning:
https://bitbucket.org/reiniero

Lazarus trunk+FPC trunk x86, Windows x64 unless otherwise specified

marcov

  • Administrator
  • Hero Member
  • *
  • Posts: 11383
  • FPC developer.
Re: VMS PASCAL compiler mode
« Reply #5 on: October 24, 2014, 12:38:36 pm »
For the nitpickers then non-PC. But probably then sb will whine that Solaris (and potentially other ones like OS X) run fine on x86 PC server hardware. Anyway, the gist is clear I hope.
« Last Edit: January 29, 2015, 02:28:09 pm by marcov »

mai

  • Full Member
  • ***
  • Posts: 133
  • truther
VMS PASCAL
« Reply #6 on: February 21, 2015, 12:02:37 am »
HP having just announced VMS retirement after 35 years there must be a lot of HP Pascal around some of which will need to be ported!

dats true, we did stuff like that in the 90's

was VMS Modula-2 , IIRC

skalogryz

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2770
    • havefunsoft.com
Re: VMS PASCAL compiler mode
« Reply #7 on: February 21, 2015, 01:01:56 am »
Anyway in the middle of writing a pre-processor to make the syntax changes but wondering if anybody has done something similiar?
I wonder if you could adopt pass-src for your needs then.

 

TinyPortal © 2005-2018