The following applies to compiling etc on a Linux 64bit but with the correct packages installed to allow 32 bit code to be compiled and executed.
I've forked the compiler sources from the SinclairQL original at https://github.com/SinclairQL/xtc68 and compiled it. Even with a simple text file:
Code: Select all
#include <INCLUDE_stdio.h>
int main(int argc, char *argv[]) {
printf("\n\nHello World!\n\n");
return 0;
}
Code: Select all
qcc -o test test.c -I ../support
*** stack smashing detected ***: as68 terminated
Aborted
Code: Select all
! Generated by c68 4.5 27 Feb 99 (Oct 30 2018) from "test.i"
.sect .text
.sect .rom
.sect .data
.sect .bss
.sect .text
I_1:
.data1 0xa,0xa
.ascii "Hello World!"
.data1 0xa,0xa,0x0
.align 2
.extern _main
_main:
bra I_2
I_3:
pea I_1
jsr _printf
move.l #0,d0
I_4:
unlk a6
rts
I_2:
link a6,#0
bra I_3
Q1. Has anyone attempted to use this compiler? Successfully? It could be I've compiled with the wrong options - instructions are few and far between. Google, in this case, is of little help either.
Q2. I'm not seeing any libraries in this installation, so I suspect the linker (qld) will not work either, leading to a complete lack of executable files?
Thanks.
Cheers,
Norm.