Page 1 of 2
C cross compiler
Posted: Sat Jan 11, 2014 9:41 pm
by radastan
Hi,
I am searching for a 68000 C cross compiler for make programs. I found 68KIDE, but only works on Windows Xp and in x64 Windows crash on compilation.
¿Any C compiler like Z88DK or else?
Thanks for your help.
Re: C cross compiler
Posted: Sat Jan 11, 2014 9:47 pm
by RWAP
I am not aware of any - but why not use the QL version of C68 from within q-emulator or similar......
That is the C program I have used - but maybe there are better development environments on the PC?
Re: C cross compiler
Posted: Sat Jan 11, 2014 11:39 pm
by radastan
Use a C compiler on QL have two problems:
1- If your program hangs... you need to restart again Ql and load compiler.
2- C compilers on QL are not comfortable than PC one's.
I will think in your option as a last one.
Re: C cross compiler
Posted: Sun Jan 12, 2014 6:40 am
by swensont
I've used most of the C compilers that are available for the QL, and I've recently been playing with Z88DK. I think that C68 is a more stable compiler than Z88DK, and has more features. It's not derived from Small-C, like Z88DK. I'm fairly sure it is full K&R and pretty close the being ANSI complient (ok guys, correct me if I'm wrong on this).
When running a C program on the QL, if it crashes or gets hung, it usually does not crash the system. Just CTRL-C to the Window #0 prompt. You can then type JOBS, find the offending process, and use RJOB to kill it (very Unix like). Now, if you are writing a device driver or such, you can probably crash the system, but a user level program should not.
Tim Swenson
Re: C cross compiler
Posted: Sun Jan 12, 2014 10:47 am
by RWAP
Tobias Froschle has pointed out that there is a DOS version of C68 if this might help -
See
http://morloch.hd.free.fr/smsq/#LANG , search for "XTC68DOS"
Re: C cross compiler
Posted: Sun Jan 12, 2014 11:03 am
by radastan
¡YES!
I will test it, is perfect for my requirements.
Re: C cross compiler
Posted: Sun Jan 12, 2014 12:25 pm
by RWAP
Excellent - let's hope it runs under the latest DOS boxes in Windows!
Re: C cross compiler
Posted: Sun Jan 12, 2014 12:29 pm
by tofro
And, to increase the choice to two:
There is a Linux gcc cross compiler for QDOS on the same site:
http://morloch.hd.free.fr/qdos/qdosgcc.html
Tobias
Re: C cross compiler
Posted: Sun Jan 12, 2014 1:39 pm
by Marq
That GCC version is so ancient that I wouldn't have high hopes of getting it to run or compile. VBCC would be the best way to go in my opinion - I actually managed to quickly hack it to produce binaries for the QL, but that hack wasn't sustainable in the long run (static address, libraries copied from the ST version).
Re: C cross compiler
Posted: Sun Jan 12, 2014 2:40 pm
by radastan
XTC68DOS didn't work on x64 Windows.
I found Aztec68K, but have the same problem on x64:
http://www.aztecmuseum.ca/compilers.htm#aztec68K
Still searching for a free (or low cost) 68000 C compiler for Windows.