Amiga.org

Amiga computer related discussion => Amiga/MorphOS/AROS Programmers Forum => Topic started by: kamelito on August 25, 2015, 01:59:00 PM

Title: Wich C is used in AmigaOS?
Post by: kamelito on August 25, 2015, 01:59:00 PM
For insiders, knowing that AmigaOS shipped in 1985 It was then written regarding C in K&R, does CBM did migrate at one point to ANSI C? Today what is used? K&R, ANSI, C99 or C11 or a mix of all or some?
Thx
Kamelito
Title: Re: Wich C is used in AmigaOS?
Post by: sm3 on August 25, 2015, 03:14:59 PM
While I'm no Amiga C guru, I have the boxed version of the SAS/C Lattice C for AmigaDOS (version 5). On the side of the box it reads:

" Lattice C Compilers conform very closely to the proposed ANSI C standards.."

This version was for AmigaDOS 2.0.

The last version for the Amiga was 6.58 I believe. Here is what the docs mention regarding it:

Compatibility with Standards

     Most functions in the SAS/C library are compatible with industry-recognized  C library standards, including  

  ISO/ANSI C Standards

   The SAS/C library is fully compliant with the 1990 ISO/ANSI C standard.  Implementation-defined behavior for the ISO/ANSI library is described  in Chapter 2, "Language Definition" in SAS/C Compiler and Library User's Guide, Fourth Edition .


This was taken from here: http://support.sas.com/documentation/onlinedoc/sasc/doc/lr1/lrv1ch1.htm#sect3_1
Title: Re: Wich C is used in AmigaOS?
Post by: theprez on August 26, 2015, 06:19:15 AM
You might want to ask ssolie.  He writes AmigaOS all the time.  Not "for" AmigaOS - the OS itself.  The last time we talked, he emphasized that he was using "C" to do it.  Since I'm not a programmer at that level (or most any level, for that matter), I'm not sure which "C."  

However, I do know that he's currently testing a new SDK for AmigaOS.  You might try the AmigaOS wiki  here (http://wiki.amigaos.net/wiki/Main_Page) to find out more.  Hope this helps.
Title: Re: Wich C is used in AmigaOS?
Post by: sm3 on August 26, 2015, 01:23:17 PM
You reminded me of a good point, I was describing the C compilers for the classic AmigaOS up to 3.1 (I suppose it is).

I don't really have any knowledge of the more modern versions (anything beyond 3.1).
Title: Re: Wich C is used in AmigaOS?
Post by: theprez on August 27, 2015, 02:54:01 AM
I think the current SDK is using gcc as the compiler.