Welcome, Guest. Please login or register.

Author Topic: C programming must-haves  (Read 3719 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline bburtonpa

  • Newbie
  • *
  • Join Date: Sep 2006
  • Posts: 20
    • Show all replies
Re: C programming must-haves
« on: March 31, 2008, 06:09:15 PM »
> Compilers: Use SAS/C? What's the latest available version?

For native Amiga apps, SAS/C is the only way to go.  To my knowledge, it is also the only compiler that you can use to create a shared function library (similar to a dll).  

In addition to the other links that people have provided, you may also want to take a look at this site:

http://amidevcpp.amiga-world.de/

This is a very nice IDE with support for both the Amiga and AROS.  

Be aware that C++ apps, even when generated by SAS/C, will be huge.  Just for fun, I've coded some console apps using the C++ standard library using vectors, lists, streams, etc.  Talk about MAJOR code bloat, a simple hello world app can go from a few thousand (a few HUNDRED if you know what you're doing) bytes to well over 400,000!  Stick with asm or C.

> Documentation on APIs etc? I have Libraries and Devices RKM. Is there an official place to get documentation?

No OFFICIAL place to get documentation.  The autodocs are handy, but not absolutely necessary.  The RKM:Libraries manual that you already have is the best place to start.

> Example code anyplace?

The RKM:Libraries manual is the first place to start.  It contains good examples for opening viewports, windows, screens, boopsi as well as tasks, messaging, etc.  I would then try Aminet/dev for additionl source code and examples.  It is a GREAT place to find code  in asm, C, E and Modula-2.  Although there is a lot of duplication, the Fred Fish (R.I.P. my friend) disks are also a good source for example code.

> Anything else I need to know to get started?

Just have fun... :-)



 

Offline bburtonpa

  • Newbie
  • *
  • Join Date: Sep 2006
  • Posts: 20
    • Show all replies
Re: C programming must-haves
« Reply #1 on: March 31, 2008, 06:16:00 PM »
Spellcoder, NICE wiki...