C cross compiler

Anything QL Software or Programming Related.
User avatar
radastan
ROM Dongle
Posts: 46
Joined: Sat Jan 11, 2014 8:11 pm

C cross compiler

Post 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.


RWAP
RWAP Master
Posts: 2834
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Re: C cross compiler

Post 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?


User avatar
radastan
ROM Dongle
Posts: 46
Joined: Sat Jan 11, 2014 8:11 pm

Re: C cross compiler

Post 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.


swensont
Forum Moderator
Posts: 252
Joined: Tue Dec 06, 2011 3:30 am
Location: SF Bay Area
Contact:

Re: C cross compiler

Post 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


RWAP
RWAP Master
Posts: 2834
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Re: C cross compiler

Post 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"


User avatar
radastan
ROM Dongle
Posts: 46
Joined: Sat Jan 11, 2014 8:11 pm

Re: C cross compiler

Post by radastan »

RWAP wrote: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"
¡YES!

I will test it, is perfect for my requirements.


RWAP
RWAP Master
Posts: 2834
Joined: Sun Nov 28, 2010 4:51 pm
Location: Stone, United Kingdom
Contact:

Re: C cross compiler

Post by RWAP »

Excellent - let's hope it runs under the latest DOS boxes in Windows!


User avatar
tofro
Font of All Knowledge
Posts: 2685
Joined: Sun Feb 13, 2011 10:53 pm
Location: SW Germany

Re: C cross compiler

Post 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


ʎɐqǝ ɯoɹɟ ǝq oʇ ƃuᴉoƃ ʇou sᴉ pɹɐoqʎǝʞ ʇxǝu ʎɯ 'ɹɐǝp ɥO
User avatar
Marq
ROM Dongle
Posts: 28
Joined: Sun Jan 22, 2012 11:48 pm
Location: Helsinki, Finland
Contact:

Re: C cross compiler

Post 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).


User avatar
radastan
ROM Dongle
Posts: 46
Joined: Sat Jan 11, 2014 8:11 pm

Re: C cross compiler

Post 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.


Post Reply