[comp.sys.amiga.programmer] Amiga compiler recommendations

kemnitz@eden.Berkeley.EDU (Greg Kemnitz) (06/26/91)

I just got my A3000 and I intend to port Postgres to it (200,000 lines of
pretty ancient and often bad C code that does work with K & R compilers on Unix
boxes).  What compilers on the Amiga have the following:

1.  A good debugger 
2.  Efficient code, but no buggy optimizers (if it has one, Postgres will find
    it :-(
3.  Other Unix-style tools such as grep, awk, sed, make, lex/yacc, etc
4.  Decent manuals.  

-----------------------------------------------------------------------
Greg Kemnitz                  |      "I ran out of the room - I
Postgres Chief Programmer     |      didn't want to be killed by a pile
278 Cory Hall, UCB            |      of VMS manuals" :-)
(415) 642-7520                |
kemnitz@postgres.berkeley.edu |      --A friend at DEC Palo Alto in the Quake

jap@convex.cl.msu.edu (Joe Porkka) (06/26/91)

kemnitz@eden.Berkeley.EDU (Greg Kemnitz) writes:

>I just got my A3000 and I intend to port Postgres to it (200,000 lines of
>pretty ancient and often bad C code that does work with K & R compilers on Unix
>boxes).  What compilers on the Amiga have the following:

>1.  A good debugger 
>2.  Efficient code, but no buggy optimizers (if it has one, Postgres will find
>    it :-(
>3.  Other Unix-style tools such as grep, awk, sed, make, lex/yacc, etc
>4.  Decent manuals.  

SAS/C is the one and only to satisfy (most of) the above.
It doesn't have awk, sed, lex/yacc, but these are available frlom amiga FTP
sites. It have a make (lmk) that isn't quite compatible with
unix make, but its not bad.

It complains about lots of things a K&R compiler wouldn't, but you
can selectivly turn off warnings.

jdickson@jato.jpl.nasa.gov (Jeff Dickson) (06/26/91)

In article <1991Jun26.050537.23412@msuinfo.cl.msu.edu> jap@convex.cl.msu.edu (Joe Porkka) writes:
>kemnitz@eden.Berkeley.EDU (Greg Kemnitz) writes:
>
>>I just got my A3000 and I intend to port Postgres to it (200,000 lines of
>>pretty ancient and often bad C code that does work with K & R compilers on Unix
>>boxes).  What compilers on the Amiga have the following:
>
>>1.  A good debugger 
>>2.  Efficient code, but no buggy optimizers (if it has one, Postgres will find
>>    it :-(
>>3.  Other Unix-style tools such as grep, awk, sed, make, lex/yacc, etc
>>4.  Decent manuals.  
>
>SAS/C is the one and only to satisfy (most of) the above.
>It doesn't have awk, sed, lex/yacc, but these are available frlom amiga FTP
>sites. It have a make (lmk) that isn't quite compatible with
>unix make, but its not bad.
>
>It complains about lots of things a K&R compiler wouldn't, but you
>can selectivly turn off warnings.

	I happen to like K & R 'C', but the newer compilers and updates to
them insist on you adhering to ANSI. I have MANX 'C'. It supposedly has a
flag (-k) to make it behave like a good ol K & R, but it doesn't. I know that
the MANX is around revision 5.0d now, I still have 5.0. I gave up on it
earlier and reverted back to my trusty ol 3.4/3.6, but the problem is that
the library doesn't know anything about the newer calls! Maybe MANX has
fixed this by now, but I'm tired of being strapped to the compiler mana-
facture for updates. I imagine I could make my own stubs, but I'm unsure if
there is more to it than simply saving registers, translating stack based
args to registers, and cleaning up. While i'm at it, is there a compiler 
that links with amiga.lib or somehow is able to figure out the correct
_LVO offsets? 

thanks - jeff

bj@cbmvax.commodore.com (Brian Jackson) (06/27/91)

In article <1991Jun26.155319.14394@jato.jpl.nasa.gov> jdickson@jato.Jpl.Nasa.Gov (Jeff Dickson) writes:
>In article <1991Jun26.050537.23412@msuinfo.cl.msu.edu> jap@convex.cl.msu.edu (Joe Porkka) writes:
>>kemnitz@eden.Berkeley.EDU (Greg Kemnitz) writes:
>>
>>>I just got my A3000 and I intend to port Postgres to it (200,000 lines of
>>>pretty ancient and often bad C code that does work with K & R compilers on Unix
>>>boxes).  What compilers on the Amiga have the following:
>>
>>>1.  A good debugger 
>>>2.  Efficient code, but no buggy optimizers (if it has one, Postgres will find
>>>    it :-(
>>>3.  Other Unix-style tools such as grep, awk, sed, make, lex/yacc, etc
>>>4.  Decent manuals.  
>>
>>SAS/C is the one and only to satisfy (most of) the above.
>>It doesn't have awk, sed, lex/yacc, but these are available frlom amiga FTP
>>sites. It have a make (lmk) that isn't quite compatible with
>>unix make, but its not bad.

I disagree, actually.

>>It complains about lots of things a K&R compiler wouldn't, but you
>>can selectivly turn off warnings.
>
>	I happen to like K & R 'C', but the newer compilers and updates to
>them insist on you adhering to ANSI. I have MANX 'C'. It supposedly has a
>flag (-k) to make it behave like a good ol K & R, but it doesn't. I know that
>the MANX is around revision 5.0d now, I still have 5.0. I gave up on it
>earlier and reverted back to my trusty ol 3.4/3.6, but the problem is that
>the library doesn't know anything about the newer calls! Maybe MANX has
>fixed this by now, but I'm tired of being strapped to the compiler mana-
>facture for updates. I imagine I could make my own stubs, but I'm unsure if
>there is more to it than simply saving registers, translating stack based
>args to registers, and cleaning up. While i'm at it, is there a compiler 
>that links with amiga.lib or somehow is able to figure out the correct
>_LVO offsets? 
>
>thanks - jeff

The latest Manx 5.0d package comes with 2.0 support (libs, includes, etc.)
and works just fine. I use it all the time for a relatively wide variety
of chores.

Brian

 -----------------------------------------------------------------------
 | Brian Jackson  Software Engineer, Commodore-Amiga Inc.  GEnie: B.J. |
 | bj@cbmvax.cbm.commodore.com    or  ...{uunet|rutgers}!cbmvax!bj     |
 | "Macho's cool but please don't eat the urinal cakes."               |
 -----------------------------------------------------------------------

chucks@pnet51.orb.mn.org (Erik Funkenbusch) (06/27/91)

jap@convex.cl.msu.edu (Joe Porkka) writes:
>kemnitz@eden.Berkeley.EDU (Greg Kemnitz) writes:
>
>>I just got my A3000 and I intend to port Postgres to it (200,000 lines of
>>pretty ancient and often bad C code that does work with K & R compilers on Unix
>>boxes).  What compilers on the Amiga have the following:
>
>>1.  A good debugger 
>>2.  Efficient code, but no buggy optimizers (if it has one, Postgres will find
>>    it :-(
>>3.  Other Unix-style tools such as grep, awk, sed, make, lex/yacc, etc
>>4.  Decent manuals.  
>
>SAS/C is the one and only to satisfy (most of) the above.
>It doesn't have awk, sed, lex/yacc, but these are available frlom amiga FTP
>sites. It have a make (lmk) that isn't quite compatible with
>unix make, but its not bad.
>
>It complains about lots of things a K&R compiler wouldn't, but you
>can selectivly turn off warnings.


Not quite true, that is about it being the one and only, since you can have
full K&R compliance with a K&R pre-processor with Aztec 5.x.  the only problem
comes with the library functions, i believe that SAS has some Unix library
functions that Manx doesn't have, and vice-versa.

...--------------------------------------------------------------------------.
| UUCP: {amdahl!tcnet, crash}!orbit!pnet51!chucks | "I know he's come back |
| ARPA: crash!orbit!pnet51!chucks@nosc.mil        | from the dead, but do  |
| INET: chucks@pnet51.orb.mn.org                  | you really think he's  |
|-------------------------------------------------| moved back in?"        |
| Amiga programmer at large, employment options   | Lou Diamond Philips in |
| welcome, inquire within.                        | "The First Power".     |
`--------------------------------------------------------------------------'