[Info-vax] Bliss

Arne Vajhøj arne at vajhoej.dk
Sat Jul 20 15:04:55 EDT 2024


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 at 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 at arnepc6:~$ blissc-master/blissc newtest.b32
arne at arnepc6:~$ gcc newtest.o -o newtest
arne at arnepc6:~$ ./newtest
Hello world!
arne at arnepc6:~$

Arne





More information about the Info-vax mailing list