Welcome, Guest. Please login or register.

Author Topic: winuae c compiler  (Read 5348 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline b41d3rTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2011
  • Posts: 57
    • Show only replies by b41d3r
winuae c compiler
« 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.
 

Offline Ezrec

  • Jr. Member
  • **
  • Join Date: Aug 2010
  • Posts: 58
    • Show only replies by Ezrec
    • http://www.evillabs.net
Re: winuae c compiler
« Reply #1 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.
 

Offline commodorejohn

  • Hero Member
  • *****
  • Join Date: Mar 2010
  • Posts: 3165
    • Show only replies by commodorejohn
    • http://www.commodorejohn.com
Re: winuae c compiler
« Reply #2 on: December 01, 2011, 10:09:15 PM »
You might consider 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.)
Computers: Amiga 1200, DEC VAXStation 4000/60, DEC MicroPDP-11/73
Synthesizers: Roland JX-10/MT-32/D-10, Oberheim Matrix-6, Yamaha DX7/FB-01, Korg MS-20 Mini, Ensoniq Mirage/SQ-80, Sequential Circuits Prophet-600, Hohner String Performer

"\'Legacy code\' often differs from its suggested alternative by actually working and scaling." - Bjarne Stroustrup
 

Offline LamboJay

  • Newbie
  • *
  • Join Date: Jun 2011
  • Posts: 5
    • Show only replies by LamboJay
    • http://www.excelsiorbbs.com
Re: winuae c compiler
« Reply #3 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.
A1000: OS1.3 | A2000HD: OS2.1 | A3000: OS3.9 | A4000: OS3.1 | A1200: OS3.5 | A600HD: OS2.05
http://www.excelsiorbbs.com
 

Offline nyteschayde

  • VIP / Donor - Lifetime Member
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 644
    • Show only replies by nyteschayde
    • http://www.nyteshade.com
Re: winuae c compiler
« Reply #4 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.
Senior MTS Software Engineer with PayPal
Amigas: A1200T 060/603e PPC • A1200T 060 • A4000D 040 • A3000 (x2) • A2000 Vamp/V2 • A1200 (x4) • A1000 (x3) • A600 Vamp/V1 • A500
 

Offline EDanaII

  • Hero Member
  • *****
  • Join Date: Dec 2006
  • Posts: 579
    • Show only replies by EDanaII
    • http://www.EdwardGDanaII.info
Re: winuae c compiler
« Reply #5 on: December 01, 2011, 11:50:55 PM »
@ b41d3r

Go here.

On the top you will see a menu strip with the words "Dev-HardFile v1.11 for UAE / real Amiga" 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 in conjunction with AmiDevCpp, Visual Studio or Eclipse.

Hope you find any of these useful.
Ed.
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: winuae c compiler
« Reply #6 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.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline b41d3rTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2011
  • Posts: 57
    • Show only replies by b41d3r
Re: winuae c compiler
« Reply #7 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 ?
 

Offline Gilloo

  • Full Member
  • ***
  • Join Date: Apr 2006
  • Posts: 124
    • Show only replies by Gilloo
Re: winuae c compiler
« Reply #8 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... :(
« Last Edit: December 02, 2011, 01:57:54 PM by Gilloo »
 

Offline Crumb

  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 1786
  • Country: 00
    • Show only replies by Crumb
    • http://cuaz.sourceforge.net
Re: winuae c compiler
« Reply #9 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).
The only spanish amiga news web page/club: Club de Usuarios de Amiga de Zaragoza (CUAZ)
 

Offline b41d3rTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2011
  • Posts: 57
    • Show only replies by b41d3r
Re: winuae c compiler
« Reply #10 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 ...:(
 

Offline b41d3rTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2011
  • Posts: 57
    • Show only replies by b41d3r
Re: winuae c compiler
« Reply #11 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 ?
 

Offline ChaosLord

  • Hero Member
  • *****
  • Join Date: Nov 2003
  • Posts: 2608
    • Show only replies by ChaosLord
    • http://totalchaoseng.dbv.pl/news.php
Re: winuae c compiler
« Reply #12 on: December 03, 2011, 08:14:13 PM »
No that is not a correct version.  That is woefully out of date.
Wanna try a wonderfull strategy game with lots of handdrawn anims,
Magic Spells and Monsters, Incredible playability and lastability,
English speech, etc. Total Chaos AGA
 

Offline b41d3rTopic starter

  • Jr. Member
  • **
  • Join Date: Sep 2011
  • Posts: 57
    • Show only replies by b41d3r
Re: winuae c compiler
« Reply #13 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.
 

Offline krashan

  • Sr. Member
  • ****
  • Join Date: Jan 2003
  • Posts: 254
  • Country: pl
  • Thanked: 1 times
  • Gender: Male
  • Hardware designer and programmer
    • Show only replies by krashan
    • Personal homepage
Re: winuae c compiler
« Reply #14 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.