[Info-vax] Bliss

Hunter Goatley goathunter at goatley.com
Sun Jul 21 04:59:33 EDT 2024


On 7/20/2024 3:04 PM, Arne Vajhøj wrote:
>
> arne at arnepc6:~$ blissc-master/blissc newtest.b32
> arne at arnepc6:~$ gcc newtest.o -o newtest
> arne at arnepc6:~$ ./newtest
> Hello world!
> arne at 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 at 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 at zaius:bliss$
-----------------------------------------------------

And if I change to "MAIN=test", I get:

hunter at zaius:build$ ./blissc ~/tmp/bliss/test.b32
hunter at 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 at zaius:build$

Also, where is your puts() coming from?

Hunter




More information about the Info-vax mailing list