Amiga.org
Amiga computer related discussion => Amiga/MorphOS/AROS Programmers Forum => Topic started 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
-
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
- traditional UNIX C libraries
- POSIX 1003.1.
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
-
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.
-
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).
-
I think the current SDK is using gcc as the compiler.