Re: Fortran, no RAN ?

Liste des GroupesRevenir à co vms 
Sujet : Re: Fortran, no RAN ?
De : brown_mi (at) *nospam* encompasserve.org (Michael Brown)
Groupes : comp.os.vms
Date : 19. Jun 2024, 16:05:12
Autres entêtes
Organisation : House Harris Software
Message-ID : <v4us38$evbo$1@i2pn2.org>
References : 1 2 3 4 5
User-Agent : Mozilla Thunderbird
On 18/6/24 09:46, Arne Vajhøj wrote:
On 6/17/2024 6:12 PM, Arne Vajhøj wrote:
On 6/17/2024 12:09 AM, Michael Brown wrote:
But the question now is why RAN(I1, I2) works on the VAX compiler,and not on the X86_64 compiler. And what is it doing with those 2 parameters on the VAX so I can simulate it somehow.
>
Are you sure that it is intrinsic and not something picked
up from some library?
>
What type is RNDOM? Default REAL*4? Or Integer*4?
>
If INTEGER*4 then my guess would be that:
>
RAN(I1, I2)
>
is:
>
RAN_INT_IN_INTERVAL(LOW_BOUND, HIGH_BOUND)
 Example:
 $ typ ranfun2.for
<insert code here......>

       end
 Arne
 
That was extremely useful code,  I think RNDOM is integer, certainly the ran2arg function compiled into it without complaint, and there is no RAN funcion defined in any or the code. I don't know why the RAN with 2 args works n the VAX.
Alas as far as porting mtrek is concerned that just led to another problem. seems the  the call ERRSET doesn't seem to work(undefined symbol at link time) under the X86 fortran.
But I think I am very close.
--
House Harris Software.
Making the world a safer place for our products.
https://eisner.decus.org/~brown_mi

Date Sujet#  Auteur
16 Jun 24 * Fortran, no RAN ?28Michael Brown
16 Jun 24 `* Re: Fortran, no RAN ?27Arne Vajhøj
16 Jun 24  +* Re: Fortran, no RAN ?13Arne Vajhøj
17 Jun 24  i`* Re: Fortran, no RAN ?12Lawrence D'Oliveiro
17 Jun 24  i `* Re: Fortran, no RAN ?11Arne Vajhøj
17 Jun 24  i  +* Re: Fortran, no RAN ?9Arne Vajhøj
17 Jun 24  i  i+- Re: Fortran, no RAN ?1Arne Vajhøj
17 Jun 24  i  i`* Re: Fortran, no RAN ?7Lawrence D'Oliveiro
18 Jun 24  i  i `* Re: Fortran, no RAN ?6John Reagan
18 Jun 24  i  i  +- Re: Fortran, no RAN ?1Stephen Hoffman
18 Jun 24  i  i  `* Re: Fortran, no RAN ?4Arne Vajhøj
19 Jun 24  i  i   `* Re: Fortran, no RAN ?3Simon Clubley
19 Jun 24  i  i    `* Re: Fortran, no RAN ?2Chris Townley
19 Jun 24  i  i     `- Re: Fortran, no RAN ?1Simon Clubley
17 Jun 24  i  `- Re: Fortran, no RAN ?1Arne Vajhøj
17 Jun 24  `* Re: Fortran, no RAN ?13Michael Brown
17 Jun 24   `* Re: Fortran, no RAN ?12Arne Vajhøj
18 Jun 24    +* Re: Fortran, no RAN ?9Arne Vajhøj
19 Jun 24    i`* Re: Fortran, no RAN ?8Michael Brown
19 Jun 24    i `* Re: Fortran, no RAN ?7Arne Vajhøj
20 Jun 24    i  `* Re: Fortran, no RAN ?6Michael Brown
20 Jun 24    i   +* Re: Fortran, no RAN ?3abrsvc
20 Jun 24    i   i+- Re: Fortran, no RAN ?1Arne Vajhøj
21 Jun 24    i   i`- Re: Fortran, no RAN ?1Michael Brown
20 Jun 24    i   `* Re: Fortran, no RAN ?2Arne Vajhøj
20 Jun 24    i    `- Re: Fortran, no RAN ?1Arne Vajhøj
18 Jun 24    `* Re: Fortran, no RAN ?2Arne Vajhøj
19 Jun 24     `- Re: Fortran, no RAN ?1Arne Vajhøj

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal