Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

E Pluribus Unix


computers / comp.os.cpm / Re: STRANGE COMPILER ERROR PROSPERO FORTRAN CP/M-80

Re: STRANGE COMPILER ERROR PROSPERO FORTRAN CP/M-80

<087f82a4-545a-4ff7-996e-9bf97f6298een@googlegroups.com>

  copy mid

https://www.novabbs.com/computers/article-flat.php?id=4112&group=comp.os.cpm#4112

  copy link   Newsgroups: comp.os.cpm
X-Received: by 2002:a37:385:0:b0:745:7df3:66ca with SMTP id 127-20020a370385000000b007457df366camr4174239qkd.5.1679046276784;
Fri, 17 Mar 2023 02:44:36 -0700 (PDT)
X-Received: by 2002:a05:6870:b00a:b0:176:50be:85b4 with SMTP id
y10-20020a056870b00a00b0017650be85b4mr18968051oae.8.1679046276421; Fri, 17
Mar 2023 02:44:36 -0700 (PDT)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.os.cpm
Date: Fri, 17 Mar 2023 02:44:36 -0700 (PDT)
In-Reply-To: <385bdb19-322f-47ee-b336-387828384351n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=181.126.168.116; posting-account=RMlmTQoAAACPlMwglZiJPNUMIMJUuH19
NNTP-Posting-Host: 181.126.168.116
References: <662ff4f7-12c7-489f-9086-ec7c0603a18bn@googlegroups.com>
<k6ohpvFkd7rU1@mid.individual.net> <a5768018-5fed-40b8-a4f0-f1fb14e54c3cn@googlegroups.com>
<4356e6c8-ef5f-4e8c-a572-acc77cc6aea3n@googlegroups.com> <685dd155-01f8-439c-bc82-800106602565n@googlegroups.com>
<b33b275c-9e35-4fe4-a1cd-5edcb33e6cc8n@googlegroups.com> <a0bcefdc-1673-4b7c-96b3-b8ef40230af1n@googlegroups.com>
<9133490c-1f87-4a17-938d-514ba2a4f873n@googlegroups.com> <1eacd6ce-2d88-4f60-9a02-ac993c7b59d2n@googlegroups.com>
<aa2d1889-9304-4942-a95f-8cb79cf775b9n@googlegroups.com> <badf8c21-7a23-4d3b-ab4b-0c17e4a24aa1n@googlegroups.com>
<a6d20cae-0fb3-4db4-9494-10639fb83109n@googlegroups.com> <451df5b5-6db7-40b9-9f97-428b74467ba4n@googlegroups.com>
<dae320ed-0209-42e3-8937-e9f0a6131ed9n@googlegroups.com> <385bdb19-322f-47ee-b336-387828384351n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <087f82a4-545a-4ff7-996e-9bf97f6298een@googlegroups.com>
Subject: Re: STRANGE COMPILER ERROR PROSPERO FORTRAN CP/M-80
From: plor...@gmail.com (Plo)
Injection-Date: Fri, 17 Mar 2023 09:44:36 +0000
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-Received-Bytes: 10099
 by: Plo - Fri, 17 Mar 2023 09:44 UTC

Il giorno venerdì 17 marzo 2023 alle 04:10:27 UTC-3 ladislau szilagyi ha scritto:
> Pe vineri, 17 martie 2023, la 01:39:01 UTC+2, Plo a scris:
> > Il giorno giovedì 16 marzo 2023 alle 20:32:48 UTC-3 Plo ha scritto:
> > > Il giorno giovedì 16 marzo 2023 alle 17:13:37 UTC-3 fridtjof.ma....@gmail.com ha scritto:
> > > > On Thursday, March 16, 2023 at 3:23:43 PM UTC-4, Plo wrote:
> > > > > Il giorno giovedì 16 marzo 2023 alle 16:19:41 UTC-3 Plo ha scritto:
> > > > > > Il giorno giovedì 16 marzo 2023 alle 15:22:40 UTC-3 fridtjof.ma...@gmail.com ha scritto:
> > > > > > > On Thursday, March 16, 2023 at 10:32:44 AM UTC-4, Plo wrote:
> > > > > > > > Il giorno giovedì 16 marzo 2023 alle 08:22:41 UTC-3 Plo ha scritto:
> > > > > > > > > Il giorno mercoledì 15 marzo 2023 alle 10:12:57 UTC-3 Андрей Никитин ha scritto:
> > > > > > > > > > среда, 15 марта 2023 г. в 03:23:54 UTC+3, plo...@gmail.com:
> > > > > > > > > > > Il giorno sabato 11 marzo 2023 alle 16:39:13 UTC-3 Андрей Никитин ha scritto:
> > > > > > > > > > > > среда, 8 марта 2023 г. в 12:23:21 UTC+3, plo...@gmail.com:
> > > > > > > > > > > > > Il giorno martedì 7 marzo 2023 alle 07:26:10 UTC-3 Nils M Holm ha scritto:
> > > > > > > > > > > > > > plo...@gmail.com <plo...@gmail.com> wrote:
> > > > > > > > > > > > > > > 10 FORMAT(1H ,2F11.3,2H ,2F11.3,2H ,2F11.3)
> > > > > > > > > > > > > > It is probably unrelated, but I see two 2H with only one
> > > > > > > > > > > > > > subsequent blank here.
> > > > > > > > > > > > > >
> > > > > > > > > > > > > > --
> > > > > > > > > > > > > > Nils M Holm < n m h @ t 3 x . o r g > http://t3x.org
> > > > > > > > > > > > > Thanks Nils,
> > > > > > > > > > > > > But that's just my transcription error of the source. The strange thing is that in the package there is an executable file FCHECK.com which is used to check all the files in the package and when I run it, all the files are OK! that is, intact... It is very strange.
> > > > > > > > > > > > Is it possible to download this compiler from the Internet. If possible please send me a link to where I can do it.
> > > > > > > > > > > >
> > > > > > > > > > > > Best regards
> > > > > > > > > > > > Andrey Nikitin
> > > > > > > > > > > https://drive.google.com/drive/folders/1ms1yidXdQswVCvs0yU63sCnLTX6HhzKr?usp=sharing
> > > > > > > > > > Thanks for the link to the compiler.
> > > > > > > > > > This compiler is less common among CP/M users and almost unavailable. It is a pity that there is no user manual for it.
> > > > > > > > > > I was able to compile the test programs and get object files, but I could not get executable files out of them. When I run the linker and specify an object file name and then a library name, the program crashes. Maybe you have solved this problem in some other way, and generate an executable file. I will be happy to get any information on this matter.
> > > > > > > > > >
> > > > > > > > > > regards,
> > > > > > > > > > Andrey
> > > > > > > > > Hi Andrey,
> > > > > > > > > I want to verify that the files I uploaded in the folder are correct...then I'll let you know...
> > > > > > > > I have inserted the ProsFor.rar file which contains the complete compiler and linker files. To compile:>PROFOR and follow compiler prompts. For the LINKER :>Prolink and follow the linker requests (xxx1.rel,xxx2.rel....,FORLIB.rel) The COMPLEX.FOR source generates an incomprehensible error during the PASS 2 of the compiler and if you always confirm to go to the end of the compilation and then do the LINK you will notice that when you run the complex.com executable which sums A+B=C and prints , it doesn't calculate the sum... very strange...
> > > > > > > I confirm your error:
> > > > > > > Error C at address 1D5F
> > > > > > > Continue ? (Y/N) y
> > > > > > >
> > > > > > > FCHECK seems to like the compiler parts
> > > > > > > : fred@llana prospero $; cpm fcheck
> > > > > > >
> > > > > > > PROFOR2.COM - checks OK
> > > > > > >
> > > > > > > PROFOR.ERR - checks OK
> > > > > > >
> > > > > > > FORLIB.REL - checks OK
> > > > > > >
> > > > > > > FCONFIG.COM - checks OK
> > > > > > >
> > > > > > > G1LIB.MAC - checks OK
> > > > > > >
> > > > > > > G2LIB.MAC - checks OK
> > > > > > >
> > > > > > > PRIME.FOR - checks OK
> > > > > > >
> > > > > > > COPYTX.FOR - checks OK
> > > > > > >
> > > > > > > MAZE.FOR - checks OK
> > > > > > >
> > > > > > >
> > > > > > > Is it possible that COMPLEX support is simply "not there"?
> > > > > > >
> > > > > > > : fred@llana prospero $; cat complex.map
> > > > > > > Pro Fortran Compiler - Version zz 1.2
> > > > > > > Map of: complex.FOR
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > ****************
> > > > > > > * Unit COMPLE *
> > > > > > > ****************
> > > > > > >
> > > > > > > Name Kind Type Area Offset
> > > > > > >
> > > > > > > A Variable Comp Data 0008 (8)
> > > > > > > B Variable Comp Data 0010 (16)
> > > > > > > Z Variable Comp Data 0000 (0)
> > > > > > >
> > > > > > >
> > > > > > > Sizes:-
> > > > > > >
> > > > > > > Data 0018 (24)
> > > > > > >
> > > > > > >
> > > > > > > So, the MAP file indicates that complex is there... 8 bytes is correct. I thought that maybe the IMPLICIT was interfering, and that's not it. Nor is it the variable >layout - commenting out Z = makes A 0, B 8 and Z 16 (offset). Same error.
> > > > > > Why doesn't the compiler (PROFOR2) give an error with exponential complex function? In the algebraic sum Z=A+B it gives the error!! I can't understand this...
> > > > > > PROGRAM COMPLE
> > > > > > IMPLICIT REAL (A-H,O-Z)
> > > > > > COMPLEX A,B,Z
> > > > > > C Z = CMPLX(0.0, 0.0)
> > > > > > A = CMPLX(3.5, 3.5)
> > > > > > B = CMPLX(4.0, 5.0)
> > > > > > Z = B**2
> > > > > > WRITE(1,10) A, B, Z
> > > > > > 10 FORMAT(1H ,2F11.3,2H ,2F11.3,2H ,2F11.3)
> > > > > > PAUSE
> > > > > > STOP
> > > > > > END
> > > > > > No compiler error!!!
> > > > > > ++++++++++++++++++++++++++++++
> > > > > > Pass 2
> > > > > > Unit: Code: Data:
> > > > > > COMPLE 153 24
> > > > > > Total source lines 12
> > > > > > Prolink.........
> > > > > > Linking:
> > > > > > COMPLEX.REL
> > > > > > FORLIB.REL
> > > > > > Data:.......
> > > > > > ...............
> > > > > > ..............
> > > > > > Executable File: COMPLEX.COM
> > > > > >
> > > > > > >COMPLEX
> > > > > > 3.500 3.500 4.000 5.000 -9.000 40.000
> > > > > > A complex B complex Z=B**2 EXACT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> > > > > > Why??????????????????????
> > > > > C Z = CMPLX(0.0, 0.0) Comment in column 1 ==>>...... C Z=CMPLX(0.0, 0.0)
> > > > And, just for fun - the error is in both COMPLEX + COMPLEX *and* COMPLEX + REAL. Now, I am "nerd-sniped"
> > > Strangely, the compile error "pass 2" DOES NOT APPEAR only when there is only one intrinsic function of a only complex variable i.e. Csin(z), Ccos(z), z**constant, etc. etc, when there are two or more complex operands, then the error appears!!!!
> > I'm going crazy!!!!! And I'm sorry because it's the only Fortran Compiler under CP/M-80 with COMPLEX data Type
> Perhaps this would help: I found a link for the PROSPERO PROFORTRAN manual : http://www.dilwyn.me.uk/language/ProsperoQlFortran77UM3.pdf
>
> Ladislau
Thank-You!!!

SubjectRepliesAuthor
o STRANGE COMPILER ERROR PROSPERO FORTRAN CP/M-80

By: plo...@gmail.com on Tue, 7 Mar 2023

44plo...@gmail.com
server_pubkey.txt

rocksolid light 0.9.8
clearnet tor