Hello Tom,
If ever you consider a port to an another language, I suggest Ada.
Ada is issued from Pascal with strong type checking and more.
(www.ada2012.org)
It is an ISO standard.
I port all my Pascal programs to Ada since 2000 and I'm very happy with it.
I used P2Ada: http://p2ada.sourceforge.net.
I have some exemples on my web site (in French).
Feel free to ask questions if you are interested in.
Regards, Pascal.
http://blady.pagesperso-orange.fr
> Le 27 janv. 2016 à 22:08, gpc-request(a)gnu.de a écrit :
>
> Date: Wed, 27 Jan 2016 14:11:59 -0500
> From: Schneider <schneidt(a)mail.nih.gov>
> To: <samiam(a)moorecad.com>
> Cc: gpc(a)gnu.de
> Subject: Re: GPC compile on Mac OS X 10.10.5?
> Message-ID: <20160127191159.GA73206(a)FR-W-C132678.ncifcrf.gov>
> Content-Type: text/plain; charset="us-ascii"
>
> Scott:
>
>> What was wrong with getting a p2c translation (just curious). You
>> only have to do the translation once, then you code in C after that.
>
> I'm used to programming in Pascal, not C. Also, it's safer because of
> the type checking. If I switched I could never go back.
>
>> I used p2c (I assume we are talking about the same one). Its a very
>> picky tool that crashes when you look at it funny, but I was able to
>> get satisfactory results.
>
> You are right about looking at it funny! One kind of bug(?) is that
> it changes how it handles i/o for the input file in the middle of the
> code. I haven't determined why but fortunately it's a rare problem.
>
> Tom
>
> Thomas D. Schneider, Ph.D.
> Senior Investigator
> National Institutes of Health
> National Cancer Institute
> Center for Cancer Research
> Gene Regulation and Chromosome Biology Laboratory
> Molecular Information Theory Group
> Frederick, Maryland 21702-1201
> schneidt(a)mail.nih.gov
> https://schneider.ncifcrf.gov (current link)
> https://alum.mit.edu/www/toms (permanent link)
>
Scott:
> On another subject entirely, Do you publish your programs, ie., are
> they available somewhere?
https://alum.mit.edu/www/toms/delila/delilaprograms.html
Note that alum.mit.edu/www/toms points to the current location of my
website, so if you use that it should always work even if my website
moves again.
> I'd be interested in large ISO 7185 compliant programs for compiler
> testing. Strict ISO 7185 programs are kinda rare.
The only exception is that some programs need the date and time. They
all use a procedure called getdatetime which is compiler specific.
I have several programs named time*.p for different compilers. They
contain 'modules' for the time functions. Long ago I recognized that
insertion methods were not standard in Pascal, so I wrote a program -
'module' https://alum.mit.edu/www/toms/delila/module.html - which can
transfer chunks of text between Pascal programs. So I use module to
transfer the time modules into a program and then they compile.
Other than the time modules, I can't guarantee that they are all
"strict ISO 7185 programs" but I try to stick to the original Wirth
definition. So if you set aside the programs that contain
'getdatetime' it would be a pretty clean set.
You could also use the timenul.p program to neuter any program.
(That is, use module to transfer the modules of timenul.p into
Delila programs that use time).
Since you would like large programs, the biggest is probably delila.p
- but it uses time modules.
If you find bugs, I'd appreciate knowing about them.
Tom
Thomas D. Schneider, Ph.D.
Senior Investigator
National Institutes of Health
National Cancer Institute
Center for Cancer Research
Gene Regulation and Chromosome Biology Laboratory
Molecular Information Theory Group
Frederick, Maryland 21702-1201
schneidt(a)mail.nih.gov
https://schneider.ncifcrf.gov (current link)
https://alum.mit.edu/www/toms (permanent link)
Adriaan:
> >*I'm on the new Mac OS X 10.10.5 and I've lost my gpc compiler.*
> Sorry, were to busy to reply, but will
I'm struggling with this loss and am seriously considering abandoning
the Mac entirely. Any chance you will get back to this?
Thanks,
Tom
Thomas D. Schneider, Ph.D.
Senior Investigator
National Institutes of Health
National Cancer Institute
Center for Cancer Research
Gene Regulation and Chromosome Biology Laboratory
Molecular Information Theory Group
Frederick, Maryland 21702-1201
https://schneider.ncifcrf.gov (current link)
https://alum.mit.edu/www/toms (permanent link)