Amiga.org

Amiga computer related discussion => Amiga Software Issues and Discussion => Topic started by: b41d3r on December 01, 2011, 08:53:17 PM

Title: winuae c compiler
Post by: b41d3r on December 01, 2011, 08:53:17 PM
Hello,

As a Java architect, I'm obviously into software and I'm trying to get a C compiler working in WinUAE emulating a A1200.
So far, I've tried lattice v5.0 but the compilation of examples ends with a software failure even in launching compilation with arguments written in the source file itself.
I find it hard to get documentation about which version of which compiler would suit my "installation".
Have you tried something successfully in this idea ?
I'd like to know what development environment you managed to settle in WinUAE.
Title: Re: winuae c compiler
Post by: Ezrec on December 01, 2011, 09:16:04 PM
You make have better luck using Linux and the AROS m68k SDK to cross-compile to AOS.

It'll be much faster than compiling under WinUAE, and with a little bit of care the resulting binary should run on AOS 3.x easily enough.

PM me if you need more details.
Title: Re: winuae c compiler
Post by: commodorejohn on December 01, 2011, 10:09:15 PM
You might consider vbcc (http://sun.hasenbraten.de/vbcc/) - it's free, actively maintained, and 68k-optimized, and a newer compiler than anything from the original Amiga days (it's at least partially C99 compliant.)
Title: Re: winuae c compiler
Post by: LamboJay on December 01, 2011, 10:42:04 PM
I have not tried running SAS/Lattice 5.x under winUAE but SAS/C 6.5x, vbcc and Aztec C  (very old) all work perfectly.
Title: Re: winuae c compiler
Post by: nyteschayde on December 01, 2011, 11:24:36 PM
Emulating an A1200... which CPU? how much RAM? which OS? which ROM? There are so many factors that could be causing a bad setup there that you haven't specified that it's hard to say.


Quote from: b41d3r;669784
Hello,

As a Java architect, I'm obviously into software and I'm trying to get a C compiler working in WinUAE emulating a A1200.
So far, I've tried lattice v5.0 but the compilation of examples ends with a software failure even in launching compilation with arguments written in the source file itself.
I find it hard to get documentation about which version of which compiler would suit my "installation".
Have you tried something successfully in this idea ?
I'd like to know what development environment you managed to settle in WinUAE.
Title: Re: winuae c compiler
Post by: EDanaII on December 01, 2011, 11:50:55 PM
@ b41d3r

Go here (http://amiga.sourceforge.net/amigadevhelp/).

On the top you will see a menu strip with the words "Dev-HardFile v1.11 for UAE (http://www.innoidea.hu/subsites/amiga/developer/FILES/HardFiles/gcc111.zip) / real Amiga (http://)" and select the appropriate link. One will download a hardfile with a preconfigured Amiga for UAE, while the other has a setup for a real amiga.

Additionally, when tinkering, I use a cross compiler (http://cross.zerohero.se/os3.html) in conjunction with AmiDevCpp (http://amidevcpp.amiga-world.de/index.php?HR_LANG=english), Visual Studio or Eclipse.

Hope you find any of these useful.
Title: Re: winuae c compiler
Post by: ChaosLord on December 02, 2011, 12:34:09 AM
Lattice 5.0 is ok and everything.  But it was superceded by SASC 6.5x, the ultimate Amiga C compiler.  It is the friendliest, most amigatized C compiler for Amiga.
Title: Re: winuae c compiler
Post by: b41d3r on December 02, 2011, 07:39:56 AM
Hello all,
Thanks for your answers, I didn't expect so many and I'm pleased with that.
As I'm at work I can't give you the specifications of my installation but will try this evening at home.
It seems that there is a large bunch of possibilities for a developper to settle his environment. So I'll give a try at all your suggestions to find the best for me. So be prepared for an other load of questions.:)
As a matter of fact, I use this winUAE installation as a preproduction environment for all my installations before I carry them out on my "real" amiga 1200.
So it would be great if the the solution worked in WinUAE, and to be honest I'm looking for this vintage feeling too.
I considered too SAS 6.0 or 6.5, I don't remember, but could not find a decent manual at that time. Since I found one in LSD doc, maybe I'll give it an other try.
LamboJay, could you give me a link to an Aztec compiler manual ?
What happened to them ? They're so fundamental, where are they hidding ?
I installed it too but get a problem to make the include directory recognised by the compiler with the environment variable set appropriately. Maybe because I installed it in a "hard disk" (directory in fact) different from the hard disk containing the workbench. And if I recall correctly, I finally ended with the same software failure curse after launching.
By the way, is there any restriction in developping in WinUAE comparing to Amiga 1200 ?
Title: Re: winuae c compiler
Post by: Gilloo on December 02, 2011, 09:05:48 AM
Quote from: b41d3r;669784
Hello,

As a Java architect, I'm obviously into software and I'm trying to get a C compiler working in WinUAE emulating a A1200.
So far, I've tried lattice v5.0 but the compilation of examples ends with a software failure even in launching compilation with arguments written in the source file itself.
I find it hard to get documentation about which version of which compiler would suit my "installation".
Have you tried something successfully in this idea ?
I'd like to know what development environment you managed to settle in WinUAE.

How many MB of ram have you set for WinUAE ?
Lattice C 5 seems to be limited to 8MB of fast ram (if 16MB or upper, it crashes at the end of the compilation ...)
I got this problem and pass to the SAS C 6.0 / OS4.0 includes instead... (I know, it's lame :) )

WinUAE on i5 + 68030+JIT settings is faster than any true Amiga... :(
Title: Re: winuae c compiler
Post by: Crumb on December 02, 2011, 01:43:47 PM
If you are interested in native compilers you could try VBCC, GCC2.95.x, SAS/C and well, StormC perhaps. There are ready to use GCC hardfiles like Louise's ones.

If you want to compile faster outside of Amiga environment and test inside WinUAE you could try VBCC or GCC (it's included in AmiDevCpp).
Title: Re: winuae c compiler
Post by: b41d3r on December 03, 2011, 05:42:36 PM
Hi,

I'm currently getting mad at trying to install correctly a lattice compiler in winUAE.
Whether it's v5.0 or v5.02 or even c++, I always get a problem at installation saying something like "error in checksum" or "error in reading" or so.
I use the distributions of these from TOSEC. Are they all screwed up or is it me or my configuration ? I can't understand.
Have a reliable link to distribution of Lattice for Amiga 1200 ?
Or maybe just an advice ...:(
Title: Re: winuae c compiler
Post by: b41d3r on December 03, 2011, 07:53:01 PM
I finally found a correct distribution  but I had to search all the day for it !
If someone has the same problem, he can go to :
http://chomikuj.pl/p3827/programy/emulacja/amiga/util/
I'm really surprised that I can't find easily c compilers for my computer whereas there are loads of games everywhere.
Do you guys know a good place to find this type of compiler for classic amiga only ?
Title: Re: winuae c compiler
Post by: ChaosLord on December 03, 2011, 08:14:13 PM
No that is not a correct version.  That is woefully out of date.
Title: Re: winuae c compiler
Post by: b41d3r on December 03, 2011, 08:45:25 PM
Thank you for your information.
You mean I should only use the SASC 6.5 ?
But where can I find it and his documentation ?
You know all the books I have found speak in majority of lattice and aztec.
So with no information, I won't be able to produce something valuable if not at all.
Title: Re: winuae c compiler
Post by: krashan on December 03, 2011, 09:32:01 PM
My favourite compiler on my A4000 was GCC 2.95.3. It is the slowest one, but it is also the best one.
Title: Re: winuae c compiler
Post by: b41d3r on December 03, 2011, 09:42:34 PM
I'll certainly give it a try if I'm not pleased with the ones I'm testing. As I used to know it in a previous life on Linux.:)
Title: Re: winuae c compiler
Post by: Leffmann on December 03, 2011, 11:25:56 PM
Here's a finished install of SAS/C 6.58:
http://dl.dropbox.com/u/8177628/sasc658.lha

EDIT: There are docs in Amigaguide format in the archive, but you might find a scan of the actual manual on http://amiga-manuals.xiik.net/ or http://www.bombjack.org/
Title: Re: winuae c compiler
Post by: b41d3r on December 04, 2011, 07:11:36 AM
Thank you. I'll fetch them and try.
Bye.
Title: Re: winuae c compiler
Post by: lsmart on December 04, 2011, 08:57:57 AM
I am surprised nobody mentioned DICE. Matt Dillons IDE was very popular back in the day, because it is really free, easy to use and has some pretty nice examples.
http://aminet.net/search?f=2&path=dev/c&start=150
Title: Re: winuae c compiler
Post by: b41d3r on December 04, 2011, 09:46:23 AM
If it's "roots" I'll have a look at it.
Finally, I end with too many  compilers to try !
Thanks
Title: Re: winuae c compiler
Post by: smerf on December 04, 2011, 04:36:49 PM
Quote from: lsmart;670152
I am surprised nobody mentioned DICE. Matt Dillons IDE was very popular back in the day, because it is really free, easy to use and has some pretty nice examples.
http://aminet.net/search?f=2&path=dev/c&start=150


@Ismart,

you really are smart, after reading all the posts, I found that someone mentioned DICE, as that is the compiler I use. I learned I had better read all the posts after making a post on Amiten, then I found out this wasn't quite kosher.

Anyhow you are smart.

smerf
Title: Re: winuae c compiler
Post by: ChaosLord on December 04, 2011, 06:01:14 PM
SASC 6.58 = Lattice C 6.58 and its a good compiler and awesome debugger.