[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

4752.0. "C Compilers" by WAREGL::WILSONTL (Lead Trumpet (Read that...LEED!)) Fri May 17 1991 11:25

Descriptions of C compilers are beginning to be split between two notes so I 
thought I'd add to the confusion by starting a new one...

Two notes that already contain information on DICE and GCC are 4600 and 4697.

I have been gearing up to do C programming and have been looking over the 
selections.  Three (relatively) PD C compilers that exist are DICE (PD version 
and paid version), PDC and GCC.  

DICE is Matt Dillon's compiler whose PD version comes without the Amiga 
INCLUDES.  The $50.00 version does include the includes 8^).  

I been trying to test GCC, but it hasn't yet gone the distance without GURUing 
the system.  I was going to experiment with it some more, but I got sidetracked 
by the latest AmigaWorld Technical Journal.  Seems it contains an LZH of the 
include files (at least most of them).  So I tested out DICE again and {8^o}
amazingly enough, it compiled Amiga programs!  I tested it compiling SPOOLER.c 
which comes with YAPS2-2.LZH.  Before the INCLUDES, of course, it ground out
errors by the dozens.  Afterwards, it only found one real error...the program 
was using a keyword as a variable.  HOWEVER, it still doesn't compile programs
that contain array initializations and, true to form, SPOOLER.C does.

I'm going to continue with GCC and see if I can get it to work with the includes.

PDC, I still haven't gotten to install properly.  The installation procedure
is wrong and I haven't really made a lot of effort to correct it.
T.RTitleUserPersonal
Name
DateLines
4752.1they both mostly workRGB::ROSEMon May 20 1991 00:2133
    	I haven't done a lot with GCC, but it never GURUed on me. I use the
    C= includes and the C= amiga.lib. I tried compiling DIFF from an early 
    FF disk. This is a port from GNU code. Fred Fish was unable to get it 
    working with Lattice for MAXLINE > 4000. I compiled it under GCC with 
    MAXLINE set to 20,000 and it worked fine. I tried compiling a program 
    that I have been writing that uses Amiga features heavily and it worked 
    fine. I tried activating the program from workbench and it worked. So 
    far the biggest bug I have found is that printf of floating point 
    variables doesn't work.
    
    	I tried compiling the DIFF program with DICE and got error messages
    on lines that contained only comments. But I am using DICE for most of
    the programs I write and it has been working fine. It runs faster and
    produces smaller code than GCC -  probably because of its use of the
    small data model. Another really slick feature, you add a -r to your
    DCC command and it makes residentable code (unless you did something
    sily). It works. Activation from Workbench works also if you add a
    wbmain() entry point.
    
    	Right now, I like DICE better than GCC. I am rapidly approaching a
    point where I need floating point support. At that point, I will have
    to chose between registered DICE and GCC. If GCC has fixed the printf
    bug by then and if they finish the port of the debugger, that might be
    the way to go. But Dice is nice because it is small enough I can make
    the whole thing resident. (The ARES command in ARP is really nice
    because it doesn't load programs until you use them. So you can put
    resident commands for all the DICE programs in your s/startupII and it
    doesn't use memory unless you are doing compiles.) DICE compiles fast 
    and produces small executables. 
    
    	It is probably a good idea to get the C= developement kit to use 
    with GCC.
                                                   
4752.2Not stacked enough. WAREGL::WILSONTLLead Trumpet (Read that...LEED!)Tue May 21 1991 09:182
I think my GURU appeared because I forgot to set my stack big enough (131,000).  
GCC worked after I did that.
4752.3 -> GCC?CFSCTC::CARRGuru: a 4-letter word to Amiga ownersThu May 23 1991 15:313
    Where does one find GCC? Is it available on the net?

    -Dom
4752.4tape::amiga:[amiga.programming]gcc-910123.lzhWAREGL::WILSONTLLead Trumpet (Read that...LEED!)Thu May 23 1991 18:420