Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-other / 2014-04

SuperPascal and FPC: a gross calumny :-)

4 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mark Morgan Lloyd

According to http://en.wikipedia.org/wiki/SuperPascal#Implementation, Per Brinch Hansen's SuperPascal can by compiled by GNU Pascal but not by FPC. Does anybody have time to look at this (I certainly don't right now).

The source is apparently available as a shell archive at http://brinch-hansen.net/software.shar, which implies that it would be easiest to start on a unix (rather than Windows) system.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Marco van de Voort
to Mark Morgan Lloyd: According to http://en.wikipedia.org/wiki/SuperPascal#Implementation, Per Brinch Hansen's…

In our previous episode, Mark Morgan Lloyd said:

According to http://en.wikipedia.org/wiki/SuperPascal#Implementation, Per Brinch Hansen's SuperPascal can by compiled by GNU Pascal but not by FPC. Does anybody have time to look at this (I certainly don't right now).

I did, and it compiles fine with trunk and -Miso. (2.6.x has this mode already but it is less complete than trunk)

It needs slightly more modifications than GNU Pascal, but probably that is because GPC accepts "C" preprocessor commands and extended pascal reset/rewrite statements also in iso lev 1 mode. (probably you need pass some "strict" flag to get GPC to error on that).

All things needing fixing were marked in the original source as non standard except for the C preprocessor (probably because it is considered part of the build process, not the dialect)

I updated wikipedia with the needed modifications.

The source is apparently available as a shell archive at http://brinch-hansen.net/software.shar, which implies that it would be easiest to start on a unix (rather than Windows) system.

I routinely install cygwin with the complete "archiver" section on Windows machines, and I had unshar readily available without additional actions. A habit that saves a lot of time :-)

The "clock" problem is easily fixed on Windows by using gettickcount. (which matches the description of time in ms, though maybe not relative to what)

I zipped the whole shebang and put it on

http://www.stack.nl/~marcov/superpascal.zip

Reply by email

Mark Morgan Lloyd
to Marco van de Voort
Marco van de Voort wrote 18 lines
In our previous episode, Mark Morgan Lloyd said: > According to http://en.wikipedia.org/wiki/SuperPascal#Implementation, > Per Brinch Hansen's SuperPascal can by compiled by GNU Pascal but not by > FPC. Does anybody have time to look at this (I certainly don't right now). I did, and it compiles fine with trunk and -Miso. (2.6.x has this mode already but it is less complete than trunk) It needs slightly more modifications than GNU Pascal, but probably that is because GPC accepts "C" preprocessor commands and extended pascal reset/rewrite statements also in iso lev 1 mode. (probably you need pass some "strict" flag to get GPC to error on that). All things needing fixing were marked in the original source as non standard except for the C preprocessor (probably because it is considered part of the build process, not the dialect) I updated wikipedia with the needed modifications.

Well done and thanks from the rest of us :-)

Show quoted text 7 lines
> The source is apparently available as a shell archive at > http://brinch-hansen.net/software.shar, which implies that it would be > easiest to start on a unix (rather than Windows) system. I routinely install cygwin with the complete "archiver" section on Windows machines, and I had unshar readily available without additional actions. A habit that saves a lot of time :-)

:-) but I abandoned Cygwin after more DLL Hell than I like to remember. Mainly on Linux here, although I'm still hoping to find time for one of the BSDs- and that's getting near the top of the pile for SPARC since Debian appears to be deeply enmired.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email