Re: Bliss

Liste des GroupesRevenir à co vms 
Sujet : Re: Bliss
De : goathunter (at) *nospam* goatley.com (Hunter Goatley)
Groupes : comp.os.vms
Date : 21. Jul 2024, 09:59:33
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v7iill$154b$1@dont-email.me>
References : 1 2 3 4 5 6 7 8 9
User-Agent : Mozilla Thunderbird Beta
On 7/20/2024 3:04 PM, Arne Vajhøj wrote:
>
arne@arnepc6:~$ blissc-master/blissc newtest.b32
arne@arnepc6:~$ gcc newtest.o -o newtest
arne@arnepc6:~$ ./newtest
Hello world!
arne@arnepc6:~$
 
Interesting. I copied and pasted your sample program, and I get the same thing I get with all of my tests: it complains about expecting a name, and then it goes into an infinite loop. I can only get past that if I specify some name besides "main" for the main routine.
-----------------------------------------------------
hunter@zaius:bliss$ blissc test.b32
MODULE HELLOWORLD (MAIN=main)=
........................|
%BLISS-W-NAMEEXP, name expected
-  at /home/hunter/tmp/bliss/test.b32:1:25
MODULE HELLOWORLD (MAIN=main)=
........................|
%BLISS-W-DELIMEXP, expected delimiter ','
-  at /home/hunter/tmp/bliss/test.b32:1:25
MODULE HELLOWORLD (MAIN=main)=
............................|
%BLISS-W-DELIMEXP, expected delimiter '='
-  at /home/hunter/tmp/bliss/test.b32:1:29
MODULE HELLOWORLD (MAIN=main)=
............................|
%BLISS-W-NAMEEXP, name expected
-  at /home/hunter/tmp/bliss/test.b32:1:29
GLOBAL ROUTINE main =
...............|
%BLISS-W-NAMEEXP, name expected
-  at /home/hunter/tmp/bliss/test.b32:4:16
^C
hunter@zaius:bliss$
-----------------------------------------------------
And if I change to "MAIN=test", I get:
hunter@zaius:build$ ./blissc ~/tmp/bliss/test.b32
hunter@zaius:build$ gcc test.o -o test
/usr/bin/ld: /usr/lib/gcc/aarch64-linux-gnu/11/../../../aarch64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x1c): undefined reference to `main'
/usr/bin/ld: (.text+0x20): undefined reference to `main'
/usr/bin/ld: test.o: in function `TEST':
HELLOWORLD:(.text+0xc): undefined reference to `PUTS'
collect2: error: ld returned 1 exit status
hunter@zaius:build$
Also, where is your puts() coming from?
Hunter

Date Sujet#  Auteur
12 Jul 24 * Bliss48Arne Vajhøj
12 Jul 24 +- Re: Bliss1Simon Clubley
12 Jul 24 +* Re: Bliss45Arne Vajhøj
12 Jul 24 i`* Re: Bliss44Hunter Goatley
12 Jul 24 i +* Re: Bliss12Robert A. Brooks
13 Jul 24 i i+* Re: Bliss2Lawrence D'Oliveiro
13 Jul 24 i ii`- Re: Bliss1Robert A. Brooks
13 Jul 24 i i+* Re: Bliss History4John H. Reinhardt
14 Jul 24 i ii+* Re: Bliss History2Lawrence D'Oliveiro
14 Jul 24 i iii`- Re: Bliss History1Rich Alderson
15 Jul 24 i ii`- Re: Bliss History1Hunter Goatley
15 Jul 24 i i`* Re: Bliss5Simon Clubley
15 Jul 24 i i +* Re: Bliss2bill
15 Jul 24 i i i`- Re: Bliss1Single Stage to Orbit
15 Jul 24 i i +- Re: Bliss1Dave Froble
16 Jul 24 i i `- Re: Bliss1Paul Hardy
12 Jul 24 i +* Re: Bliss3Hunter Goatley
12 Jul 24 i i`* Re: Bliss2Hunter Goatley
12 Jul 24 i i `- Re: Bliss1Hunter Goatley
12 Jul 24 i `* Re: Bliss28Hunter Goatley
12 Jul 24 i  +- Re: Bliss1Hunter Goatley
13 Jul 24 i  `* Re: Bliss26Lawrence D'Oliveiro
13 Jul 24 i   +* Re: Bliss16Hunter Goatley
13 Jul 24 i   i`* Re: Bliss15Lawrence D'Oliveiro
13 Jul 24 i   i +* Re: Bliss6Lawrence D'Oliveiro
13 Jul 24 i   i i+* Re: Bliss4Hunter Goatley
18 Jul 24 i   i ii`* Re: Bliss3Lawrence D'Oliveiro
18 Jul 24 i   i ii +- Re: Bliss1Hunter Goatley
19 Jul 24 i   i ii `- Re: Bliss1Arne Vajhøj
24 Jul 24 i   i i`- Re: Bliss1Lawrence D'Oliveiro
13 Jul 24 i   i +- Re: Bliss1Hunter Goatley
20 Jul 24 i   i `* Re: Bliss7Lawrence D'Oliveiro
20 Jul 24 i   i  `* Re: Bliss6Arne Vajhøj
21 Jul 24 i   i   +- Re: Bliss1Lawrence D'Oliveiro
21 Jul 24 i   i   `* Re: Bliss4Hunter Goatley
21 Jul 24 i   i    `* Re: Bliss3Hunter Goatley
21 Jul 24 i   i     `* Re: Bliss2Arne Vajhøj
21 Jul 24 i   i      `- Re: Bliss1Hunter Goatley
26 Jul 24 i   `* Re: Bliss9Lawrence D'Oliveiro
26 Jul 24 i    +- Re: Bliss1Hunter Goatley
26 Jul 24 i    +* Re: Bliss6John Reagan
26 Jul 24 i    i+- Re: Bliss1Craig A. Berry
27 Jul 24 i    i`* Re: Bliss4Arne Vajhøj
27 Jul 24 i    i +* Re: Bliss2Lawrence D'Oliveiro
28 Jul 24 i    i i`- Re: Bliss1Arne Vajhøj
29 Jul 24 i    i `- Re: Bliss1John Reagan
27 Jul 24 i    `- Re: Bliss1Lawrence D'Oliveiro
12 Jul 24 `- Re: Bliss1bill

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal