[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

1208.0. "PD Compilers." by AYOV10::ATHOMSON (Equal Rites) Tue Mar 01 1988 07:17

    I _need_ a compiler, I just can't get along any longer with amigabasic,
    however, funds do not permit the purchase of a commercial package
    yet, and I was wondering if anyone has had any experience of any
    of the PD compilers available ?
    
    My choices seem to be: (the ones I know of anyway)
    
    A) The PDC compiler on FF110. This looks OK but the docs say that
    it needs AMIGA.LIB from the developers library. Where can I get
    this library ? There is a replacement (smaller) AMIGA.LIB on another
    FF disk (~92?), can PDC run with this ?
    
    B) The M2amiga demo on FF113. This is a demo version that limits
    code size. Does anyone know what the restriction is ? If it's not
    too bad then this may do for a while as I will be learning a new
    language as well as a new machine and by the time I'm ready for
    larger programs, funds should allow me to buy a commercial M2 package.
    
    C) DRACO on FF75 & 76. Integer only. Same problem as M2, new language
    on a new machine. Not exactly the worlds largest user base.
    
    Has anyone used any of these ? Any recommendations ? Gotchas ? Or
    should I stick with AmigaBasic (spit) until I can afford something
    'proper' ? 
    
    I should perhaps add that the prime use for this language will be
    to help me learn about the Amiga. Major projects will come (much)
    later.
    
    				Alan T.
    
    P.S. Can anyone tell me why Lattice C V4.0 is _SO_ much cheaper
    than V3.* ?
T.RTitleUserPersonal
Name
DateLines
1208.1The scoop on M2AmigaMTBLUE::PFISTER_ROBSteak knife, puta hole in my headTue Mar 01 1988 10:5513
There are 2 limits to the M2Amiga demo compiler, in that it cant produce
code with large code, and some of the nice library's you'd like to use
are missing.  I did find it usefull enough to produce some short example
code, and actually *buy* the full version. It was kinda hard to learn
how/what was in all the packages from the demo too. 

Modula-2 is an up and coming language, and I think you'll see more and more
stuff written for the Amiga in it soon.  M2Amiga is close to bomb proof,
with the only guru's I've had being mucking some internal things pretty
bad (like writting over DOSbase, trashing random memory, not replying to
msg's)

Robb
1208.2Worth what you paid?TLE::RMEYERSRandy MeyersTue Mar 01 1988 18:3622
Re: .0

The library that you need, alink, a few other tools plus full documentation
on all Amiga library routines is available from Commodore for $20.  It is
called the "1.2 Native Developer's Update."  See note 864.3 for ordering
details.  If you plan to do any Amiga programming in any language, this is
a great buy.

However, this will not give you a C runtime library; it will merely give
to access to the Amiga's builtin routines.  In other words, you will not
be able to run any program you find in a C textbook that makes use of
the C runtime library (by doing I/O, for example).  You would be able to
do a great deal of Amiga specific programming.

I never tried to use that PD C compiler.  However, I am suspicious.  Doing
a "product quality" compiler  is hard (even for the low standards of the
pc marketplace).  Using a less than product quality compiler is nothing
but aggravation.  You may be getting what you paid for here.

You may want to try out the PD compiler (the price is right!).  It might
be one of those rare ones that is worthwhile.  However, I wouldn't get up
hopes up too high.
1208.3You're still probably going to have to learn C34823::ANDREWSHow come nobody told *ME*?Tue Mar 01 1988 20:2717
    I've been looking at using DRACO lately.  I'm in the same boat you
    are, i.e. no bucks.  Draco looks quite a bit like 'C'.  So, you'll
    have to learn all about 'C' to use this puppy.  I'm just starting
    on it, so I'm not that good at it.
    
    As far as the compiler goes, it looks excellent.  Eleventy-million
    include files, (note that some of these are almost, but not quite
    the same as the 'C' include files), BLink is included.  There are
    about a dozen or so examples, but only 3 or 4 are written with the
    amiga in mind.  The rest are ports from his CP/M version of the
    language.  NOTE: on one of the newest Fish disks (118 I think) the
    author has a version of Empire written in Draco.  Does anyone have
    this on the net?  I think that you could get a good idea for other
    programs and how the language works from looking at the source to
    this.
    
    					Rob
1208.4pd interpretorsTLE::RMEYERSRandy MeyersTue Mar 01 1988 20:5115
Re: .3

I forgot about Draco.  I didn't play with it but it looked like it
just might be one of the exceptions.

When I see a PD compiler that comes with useful programs that it
can compile, my faith in the compiler goes up.

Other possibilities are the Icon interpreter on Fish 81 (a port of
the Griswold interpreter), the Little Smalltalk on Fish 37 (there's
a companion book by the author, Tim Budd), and XLisp on Fish 39.

Gee, I state a few notes back that I am down on pd languages, then say
that three look pretty solid on first viewing.  Maybe I just don't
trust pd compilers but pd interpreters are OK.
1208.5Draco is worth the effort.SOFTY::HEFFELFINGERGive my body to science fiction.Wed Mar 02 1988 23:0421
    Re: Draco
    
    I spent almost $200 on the TDI Modula 2 package and it was some
    of the worst money I've ever spent.  I have no major gripes about the
    language itself, but TDI's implementation stinks.  So much so that
    it drove me to look at alternatives.  Not wanting to spend another
    $200 for either of the new M2 compilers, I decided to try the Draco
    compiler and I'm very pleased that I did.  It's very well done.
    The hooks into the Amiga system software appear to be complete.
    I've had no problems compiling Intuition based programs.  I admit
    that I've spent little time using the Graphic primitive routines,
    but those that I've used have worked just as expected.  Draco does
    look a bit like C, and indeed it's much easier to translate existing
    C code into it than into M2.  I've accomplished more with the Draco
    compiler in the month that I've been using it, than I've accomplished
    in more than a year of using the TDI compiler.
    
    Thumbs up for Draco, as long as you don't mind using a "non-standard"
    language.
    
    Gary
1208.6Thanks.AYOV10::ATHOMSONEqual RitesThu Mar 03 1988 12:086
    Thanks for the answers guys, I guess I'll just get a hold of each
    and see how I get on..... (I've ordered the FF113 - M2Amiga).
    
    But does anyone have any clues about the AMIGA.LIB for PDC ?
    
    
1208.7It's in thereTLE::RMEYERSRandy MeyersThu Mar 03 1988 19:155
Re: .6

>    But does anyone have any clues about the AMIGA.LIB for PDC ?

Read note .2.
1208.8Wrong Amiga.lib - sorry.AYOV10::ATHOMSONEqual RitesFri Mar 04 1988 13:463
    Sorry Randy,
    	I had read .2 , I should have said "AMIGA.LIB from FF9* ?"
    				Alan T.
1208.9M2Amiga demo review.AYOV10::ATHOMSONEqual RitesMon Mar 07 1988 09:5027
Well I got FF113 on Friday and spent the weekend looking at M2Amiga, and
here are some of my first impressions.

Compiler: It works quite quickly considering the disk thrashing going on
I'm sure that this will be improved further using a second drive as well.
The compiler also produces excellent error messages.

Editor: a version of microemacs. Marvellous! it actually looks to see if
the machine is PAL or NTSC! and I get 30+ rows right off (mine's a PAL.)
There is a macro which ties the error message file to the source and you
just have to choose "Next M2 error" and the cursor is sent to the appropriate
place in the source and the error message is displayed at the bottom of
the screen.

Code: Well, I haven't had much time to do much of an evaluation, and the
only thing I have to compare it with is (interpreted) AmigaBasic, but here
goes:
I wrote a version of Conway's "Life" in AmigaBasic which ran at one generation
every 57 seconds (slow huh?), I then translated it, almost line for line,
to M2 and compiled it. This version runs 10 generations in 13 seconds and
I'm absolutely sure that there are several places where I can optimise.

On the whole I'm favourably impressed.


				Alan T.