PCbanter

PCbanter (http://www.pcbanter.net/index.php)
-   Windows 7 Forum (http://www.pcbanter.net/forumdisplay.php?f=48)
-   -   Wierd question - a pascal compiler for WIn7??? (http://www.pcbanter.net/showthread.php?t=1107881)

pyotr filipivich March 15th 19 08:23 PM

Wierd question - a pascal compiler for WIn7???
 

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.
--
pyotr filipivich
The question was asked: "Is Hindsight overrated?"
In retrospect, it appears to be.

Shadow March 15th 19 08:54 PM

Wierd question - a pascal compiler for WIn7???
 
On Fri, 15 Mar 2019 12:23:01 -0700, pyotr filipivich
wrote:


This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?


ftp://ftp.freepascal.org/pub/lazarus/releases/

You'll probably have to adapt some of the code. It's Free
Pascal.
[]'s

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.

--
Don't be evil - Google 2004
We have a new policy - Google 2012
Nineteen Eighty-Four was a work of FICTION !!!! - Orwell


Big Al[_5_] March 15th 19 09:01 PM

Wierd question - a pascal compiler for WIn7???
 
On 3/15/19 3:23 PM, pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.

Microsoft gives away visual studio and you can compile c in that.
I've got an install msi for 2012 visual c++, haven't used it in 3 years.
I went to my link in Firefox and here it is, but it points to 2017 now.

https://docs.microsoft.com/en-us/pre...31853(v=vs.110)


Source Forge is a great place to shop:
https://sourceforge.net/projects/freepascal/

Al

VanguardLH[_2_] March 15th 19 09:06 PM

Wierd question - a pascal compiler for WIn7???
 
pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


Never used it (nor Pascal much) but my recollection is that Delphi
superceded Object Pascal. I don't remember back to Turbo Pascal to
remember if it encompassed the object paradigm. There are Delphi
newsgroups where you could inquire about converting Turbo Pascal to
Delphi. Unless you know C++, I would think moving from Turbo Pascal to
Delphi would be more familiar to you.

You sure the problem isn't with the bitwidth of your [compiled] Pascal
code? Windows 7 32-bit would support both 32-bit programs and by using
its WOW (Windows on Windows) emulator it can also run 16-bit programs.
However, if you have Windows 7 64-bit then it runs only 64-bit programs
and 32-bit programs using its WOW.

https://en.wikipedia.org/wiki/Windows_on_Windows

You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.

Mark Blain March 15th 19 09:36 PM

Wierd question - a pascal compiler for WIn7???
 
pyotr filipivich wrote in
:

I have a program written in Pascal and Windows 7 won't run it.

Tells me to contact the developer and get support. Except that I
am the
developer...


A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr


( Found at: http://www.freebyte.com/programming/pascal/ )
FreePascal has 32-bit and 64-bit Windows versions and aims to be
Borland-compatible. There is specific information on their website
about porting programs from Turbo.
http://wiki.lazarus.freepascal.org/Turbo_Pascal
https://www.freepascal.org/port.html
https://www.freepascal.org/

You could also try running the program without recompiling by using a
virtual machine or emulator.
http://www.freebyte.com/operatingsystems/#emulators

Paul[_32_] March 16th 19 12:19 AM

Wierd question - a pascal compiler for WIn7???
 
pyotr filipivich wrote:
This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


There's probably more than one P2C out there.
This page hints at some of the "translation" problems.

http://www.garret.ru/ptoc/Readme.htm

Pascal is tightly typed, while C is not.
C is like assembler, wearing a dress.
Pascal will cure you of a lot of bad habits,
whereas C encourages those bad habits.

Paul

pyotr filipivich March 16th 19 12:33 AM

Wierd question - a pascal compiler for WIn7???
 
VanguardLH on Fri, 15 Mar 2019 15:06:54 -0500 typed in
alt.windows7.general the following:
pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


Never used it (nor Pascal much) but my recollection is that Delphi
superceded Object Pascal. I don't remember back to Turbo Pascal to
remember if it encompassed the object paradigm. There are Delphi
newsgroups where you could inquire about converting Turbo Pascal to
Delphi. Unless you know C++, I would think moving from Turbo Pascal to
Delphi would be more familiar to you.

You sure the problem isn't with the bitwidth of your [compiled] Pascal
code? Windows 7 32-bit would support both 32-bit programs and by using
its WOW (Windows on Windows) emulator it can also run 16-bit programs.
However, if you have Windows 7 64-bit then it runs only 64-bit programs
and 32-bit programs using its WOW.

https://en.wikipedia.org/wiki/Windows_on_Windows

You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.


Sorry,. "I thought everybody knew..." Windows 7 Pro 64 bit.

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I get this same message whether the comparability mode is set for
XP (sp3), XP (sp2), Windows 98/ME, or Windows 95, Windows NT 4.0
(Service Pack 5).

So, as far as I can tell, This is a wee bit past antiquated. Hmmm,
compiled 10/17/1995. I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?

I am now

--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?

pyotr filipivich March 16th 19 12:33 AM

Wierd question - a pascal compiler for WIn7???
 
Big Al on Fri, 15 Mar 2019 16:01:43 -0400 typed
in alt.windows7.general the following:
On 3/15/19 3:23 PM, pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.

Microsoft gives away visual studio and you can compile c in that.
I've got an install msi for 2012 visual c++, haven't used it in 3 years.
I went to my link in Firefox and here it is, but it points to 2017 now.

https://docs.microsoft.com/en-us/pre...31853(v=vs.110)


Now all I'd have to do is learn C++.


Source Forge is a great place to shop:
https://sourceforge.net/projects/freepascal/

Al

--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?

Bill in Co[_3_] March 16th 19 01:17 AM

Wierd question - a pascal compiler for WIn7???
 
pyotr filipivich wrote:
VanguardLH on Fri, 15 Mar 2019 15:06:54 -0500 typed in
alt.windows7.general the following:
pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?

tschus
pyotr

*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


Never used it (nor Pascal much) but my recollection is that Delphi
superceded Object Pascal. I don't remember back to Turbo Pascal to
remember if it encompassed the object paradigm. There are Delphi
newsgroups where you could inquire about converting Turbo Pascal to
Delphi. Unless you know C++, I would think moving from Turbo Pascal to
Delphi would be more familiar to you.

You sure the problem isn't with the bitwidth of your [compiled] Pascal
code? Windows 7 32-bit would support both 32-bit programs and by using
its WOW (Windows on Windows) emulator it can also run 16-bit programs.
However, if you have Windows 7 64-bit then it runs only 64-bit programs
and 32-bit programs using its WOW.

https://en.wikipedia.org/wiki/Windows_on_Windows

You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.


Sorry,. "I thought everybody knew..." Windows 7 Pro 64 bit.

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I get this same message whether the compatibility mode is set for
XP (sp3), XP (sp2), Windows 98/ME, or Windows 95, Windows NT 4.0
(Service Pack 5).

So, as far as I can tell, This is a wee bit past antiquated. Hmmm,
compiled 10/17/1995. I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?

I am now


I think it was. I remember using Turbo Pascal back then. You'll need x86
32 bit to even run it. I think the object oriented version ("OOPS") of
Turbo Pascal came out later, like in versions 5 or 6 (IIRC), and then
finally, Borland Delphi came out and superceded it. I loved Turbo Pascal
just for writing some basic programs for myself, and the fact that it was
nearly self documenting (to some extent), at least in comparison to C, which
is more cryptic.



Java Jive March 16th 19 01:46 AM

Wierd question - a pascal compiler for WIn7???
 
On 15/03/2019 23:33, pyotr filipivich wrote:

VanguardLH on Fri, 15 Mar 2019 15:06:54 -0500 typed in
alt.windows7.general the following:

pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Windows_on_Windows


You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.


Sorry,. "I thought everybody knew..." Windows 7 Pro 64 bit.

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?


That is almost certainly your problem. If you can find a PC to run
turbo Pascal, you might be able to compile a 32-bit version, and so get
a working version ... Or was Turbo Pascal itself only 16-bit - TBH,
it's so long ago that I can't remember?!

As others have mentioned, Pascal morphed into Delphi, so a 32-bit Delphi
compiler may be able to compile your original source code with little or
no tweaks being required.


pyotr filipivich March 16th 19 02:11 AM

Wierd question - a pascal compiler for WIn7???
 
"Bill in Co" surly_curmudgeon@earthlink on Fri, 15 Mar 2019 18:17:16
-0600 typed in alt.windows7.general the following:

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I get this same message whether the compatibility mode is set for
XP (sp3), XP (sp2), Windows 98/ME, or Windows 95, Windows NT 4.0
(Service Pack 5).

So, as far as I can tell, This is a wee bit past antiquated. Hmmm,
compiled 10/17/1995. I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?

I am now


I think it was. I remember using Turbo Pascal back then. You'll need x86
32 bit to even run it. I think the object oriented version ("OOPS") of
Turbo Pascal came out later, like in versions 5 or 6 (IIRC), and then
finally, Borland Delphi came out and superceded it. I loved Turbo Pascal
just for writing some basic programs for myself, and the fact that it was
nearly self documenting (to some extent), at least in comparison to C, which
is more cryptic.


C is _very_ user friendly. It is just rather ... "selective"
about who its friends are.

--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?

pyotr filipivich March 16th 19 02:11 AM

Wierd question - a pascal compiler for WIn7???
 
Paul on Fri, 15 Mar 2019 19:19:52 -0400 typed
in alt.windows7.general the following:


*I started to port the code to C, instead of doing _that_ classwrok,
but I don't have that source code at all. Maybe on a 5 1/4 floppy,
somewhere. In a box marked Mag Media.


There's probably more than one P2C out there.
This page hints at some of the "translation" problems.

http://www.garret.ru/ptoc/Readme.htm

Pascal is tightly typed, while C is not.
C is like assembler, wearing a dress.
Pascal will cure you of a lot of bad habits,
whereas C encourages those bad habits.


I had a neat little C program which would clean up text files by
just not passing anything which wasn't in the printable ASCII range. I
think I had it doing arithmetic with character variables.


--
pyotr filipivich
Next month's Panel: Graft - Boon or blessing?

Shadow March 16th 19 02:15 AM

Wierd question - a pascal compiler for WIn7???
 
On Fri, 15 Mar 2019 16:54:19 -0300, Shadow wrote:

On Fri, 15 Mar 2019 12:23:01 -0700, pyotr filipivich
wrote:


This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Tells me to contact the developer and get
support. Except that I am the developer, and I wrote when I should
have been doing class work (the original was written on the Honeywell,
then ported to Turbo Pascal.)
A quick search shows me that Borland is no longer supporting Turbo
Pascal, so, recommendation for a Pascal compiler for Windows 7?
I thought about running the source code through a conversion
program, and "porting it" to C/C+, C++ DC++=&#, but then I'd have to
know C* to clean up the results. And find a C compiler, too.

so, recommendation for a Pascal compiler for Windows 7?


ftp://ftp.freepascal.org/pub/lazarus/releases/

You'll probably have to adapt some of the code. It's Free
Pascal.
[]'s


I forgot to mention, it has a switch to compile Borland Pascal
(but then it won't save it as a Lazarus project, it'll just compile).
Wiki he

https://en.wikipedia.org/wiki/Lazarus_%28IDE%29

You didn't mention if your program is console or GUI. Lazarus
does both. Simple tutorials (memory jog) on Youtube, by
SchoolFreeware.
[]'s


--
Don't be evil - Google 2004
We have a new policy - Google 2012
Nineteen Eighty-Four was a work of FICTION !!!! - Orwell


Bill in Co[_3_] March 16th 19 02:19 AM

Wierd question - a pascal compiler for WIn7???
 
Java Jive wrote:
On 15/03/2019 23:33, pyotr filipivich wrote:

VanguardLH on Fri, 15 Mar 2019 15:06:54 -0500 typed in
alt.windows7.general the following:

pyotr filipivich wrote:

This is the current problem: I have a program written in Pascal
and Windows 7 won't run it. Windows_on_Windows

You didn't mention the bitwidth of your Windows 7 instance. Also,
"won't run it" does not say what really happens, like the actual error
code.


Sorry,. "I thought everybody knew..." Windows 7 Pro 64 bit.

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?


That is almost certainly your problem. If you can find a PC to run
turbo Pascal, you might be able to compile a 32-bit version, and so get
a working version ... Or was Turbo Pascal itself only 16-bit - TBH,
it's so long ago that I can't remember?!

As others have mentioned, Pascal morphed into Delphi, so a 32-bit Delphi
compiler may be able to compile your original source code with little or
no tweaks being required.


Pretty sure it was 16 bit, as it was DOS based. My belief is an older Win
XP 32 bit PC running a DOS shell could run it. As I recall, the 32 bit
computers can run 16 bit code, but not the 64 bit versions, which is one
reason I got a 32 bit version of Windows 7, and by choice. Another reason
was the singularity in where user programs are installed - always in the one
and only, Program Files directory (unlike in the x64 versions).



Bill in Co[_3_] March 16th 19 02:21 AM

Wierd question - a pascal compiler for WIn7???
 
pyotr filipivich wrote:
"Bill in Co" surly_curmudgeon@earthlink on Fri, 15 Mar 2019 18:17:16
-0600 typed in alt.windows7.general the following:

Error message
"The version of this file is not compatible with the version of
Windows you're running. Check you computer's system information to see
whether you need an x86(32-bit) or x64(64-bit) version of the program,
and then contract the software publisher."

I get this same message whether the compatibility mode is set for
XP (sp3), XP (sp2), Windows 98/ME, or Windows 95, Windows NT 4.0
(Service Pack 5).

So, as far as I can tell, This is a wee bit past antiquated. Hmmm,
compiled 10/17/1995. I am now wondering if this was compiled under
DOS 6? I.e,is a sixteen bit program?

I am now


I think it was. I remember using Turbo Pascal back then. You'll need
x86 32 bit to even run it. I think the object oriented version ("OOPS")
of Turbo Pascal came out later, like in versions 5 or 6 (IIRC), and then
finally, Borland Delphi came out and superceded it. I loved Turbo
Pascal just for writing some basic programs for myself, and the fact
that it was nearly self documenting (to some extent), at least in
comparison to C, which is more cryptic.


C is _very_ user friendly. It is just rather ... "selective"
about who its friends are.


Yeah, I'd say! But at least not as selective as Assembler. :-)




All times are GMT +1. The time now is 02:09 PM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2004 - 2006 PCbanter
Comments are property of their posters