Welcome, Guest. Please login or register.

Author Topic: Wanted: General info/courses on C/C++  (Read 3870 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show all replies
Re: Wanted: General info/courses on C/C++
« on: October 27, 2006, 11:53:05 PM »
Look at the Rom Kernal Reference Manuals on the Amiga Developer CD 2.1.  They're the reference manuals everybody is supposed to use when programming Amigas.
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show all replies
Re: Wanted: General info/courses on C/C++
« Reply #1 on: October 29, 2006, 04:27:18 AM »
Quote

McVenco wrote:
I've programmed a very little bit in Basic, AMOS and assembler, but that's a long time ago.


What did you do in AMOS?  I'm curious becuase I'm a member of the Mattathias Basic project and we're trying to make Mattathias (son of Amos) function as an AMOS to C translator.

Quote

And I will most certainly have to take a look at the RKM's, I didn't know they were on the CD, so that's good news.
I also have a copy of "Amiga Intern 2.0", a German book (translated to Dutch) on coding, but that's pretty limited to WB1.3. I could be a good book for reference though..


I have that book in English.  It's pretty repetitive but it will get you started.  Just don't refer to it unless you are programming for AmigaOS 1.3. :lol:  The RKRMs on the Developer CD and the AmigaOS 3.1 and 3.5 NDK will be most of the references you need on the Amiga side of things.

The biggest problem you'll run into is that most Amiga software is written in ANSI C but most of the tutorials today are based on C++.  There may be functionality missing on Storm C++ since it preceeded the ratification of the ANSI standards of C++.

I don't use C++ unless I see a specific advantage to it since most of the stuff I do is either available in C or can be performed in object oriented code written in C (with a few function pointers here and there :-D ).

C++ is usually better when it comes to writing LARGE programs with interrelated parts.  C is better for writing system-specific code for Amiga's varargs functionality (not available under strict C++ syntax).
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show all replies
Re: Wanted: General info/courses on C/C++
« Reply #2 on: October 29, 2006, 05:47:20 AM »
 :-x I'd recommend against any book prior to AmigaOS 2.04 since a LOT has changed since then.  AmigaOS 3 has datatypes and memory pools but other than that it should be easy to pick up.  Kickstart 1.3 didn't have varargs functionality that is essential for AmigaOS 2-3 (but not necessary on 4).