Deutsch   English   Français   Italiano  
<v7iill$154b$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!3.eu.feeder.erje.net!feeder.erje.net!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: Hunter Goatley <goathunter@goatley.com>
Newsgroups: comp.os.vms
Subject: Re: Bliss
Date: Sun, 21 Jul 2024 04:59:33 -0400
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <v7iill$154b$1@dont-email.me>
References: <v6r3od$30fgj$2@dont-email.me> <v6r7ev$312bs$1@dont-email.me>
 <v6raga$31ano$2@dont-email.me> <v6rfb3$31ano$6@dont-email.me>
 <v6sj58$38thk$1@dont-email.me> <v6srvb$3dvs2$1@dont-email.me>
 <v6stoc$3e8kc$1@dont-email.me> <v7fsel$3f59s$1@dont-email.me>
 <v7h1om$3licj$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 21 Jul 2024 10:59:34 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="7bd2cc36c77519a06b9668327cabbb00";
	logging-data="38027"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18y50N6laIqq/ufsiyLwVPXuQHhXhAc9Yg="
User-Agent: Mozilla Thunderbird Beta
Cancel-Lock: sha1:8HbgCkzY+Mf506bPO/LS/mHvK9Q=
Content-Language: en-US
In-Reply-To: <v7h1om$3licj$1@dont-email.me>
Bytes: 3215

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