Sujet : Re: Bliss
De : arne (at) *nospam* vajhoej.dk (Arne Vajhøj)
Groupes : comp.os.vmsDate : 20. Jul 2024, 20:04:55
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v7h1om$3licj$1@dont-email.me>
References : 1 2 3 4 5 6 7 8
User-Agent : Mozilla Thunderbird
On 7/20/2024 4:28 AM, Lawrence D'Oliveiro wrote:
On Sat, 13 Jul 2024 03:53:48 -0000 (UTC), I wrote:
That “MAIN =” elicited no complaints, but neither did it seem to do
anything useful.
The routine referenced by the “MAIN =” directive is checked for
validity in lib/frontend/declarations.c:
but in lib/llvmgen/llvm_gencode.c, where it would be used to set the
start address in the generated code, that part is disabled:
I wonder if that code actually works?
Do you need it?
arne@arnepc6:~$ cat newtest.b32
MODULE HELLOWORLD (MAIN=main)=
BEGIN
GLOBAL ROUTINE main =
BEGIN
EXTERNAL ROUTINE puts;
puts(UPLIT(%ASCIZ'Hello world!'))
END;
END
ELUDOM
arne@arnepc6:~$ blissc-master/blissc newtest.b32
arne@arnepc6:~$ gcc newtest.o -o newtest
arne@arnepc6:~$ ./newtest
Hello world!
arne@arnepc6:~$
Arne