SharedCLibrary: Difference between revisions
m (Link across to Acorn C/C++ page) |
mNo edit summary |
||
Line 1: | Line 1: | ||
The SharedCLibrary is a module built into most versions of RISC OS, although on many older machines a newer 32-bit version will be softloaded to allow running of modern applications. It provides standard C functions as per the ANSI standard. The 32-bit version also provides newer C99 functionality. The SharedCLibrary additionally contains some RISC OS specific functions. It is the default library that the [[Norcroft]] (Acorn C/C++) compiler targets. |
The SharedCLibrary is a module built into most versions of RISC OS, although on many older machines a newer 32-bit version will be softloaded to allow running of modern applications. It provides standard C functions as per the ANSI standard. The 32-bit version also provides newer C99 and C18 functionality. The SharedCLibrary additionally contains some RISC OS specific functions. It is the default library that the [[Norcroft]] (Acorn C/C++) compiler targets. |
||
Because of its relatively limited functionality compared to the full set of functions found on UNIX systems, it can make a poor choice to try and use for ported programs, and many original RISC OS programs where the programmer requires more functionality. In these cases, the programmer may use [[UnixLib]], bundled with [[GCC]], which is its default target. Programs compiled with GCC may also target the SharedCLibrary. |
Because of its relatively limited functionality compared to the full set of functions found on UNIX systems, it can make a poor choice to try and use for ported programs, and many original RISC OS programs where the programmer requires more functionality. In these cases, the programmer may use [[UnixLib]], bundled with [[GCC]], which is its default target. Programs compiled with GCC may also target the SharedCLibrary. |
Latest revision as of 22:30, 30 October 2020
The SharedCLibrary is a module built into most versions of RISC OS, although on many older machines a newer 32-bit version will be softloaded to allow running of modern applications. It provides standard C functions as per the ANSI standard. The 32-bit version also provides newer C99 and C18 functionality. The SharedCLibrary additionally contains some RISC OS specific functions. It is the default library that the Norcroft (Acorn C/C++) compiler targets.
Because of its relatively limited functionality compared to the full set of functions found on UNIX systems, it can make a poor choice to try and use for ported programs, and many original RISC OS programs where the programmer requires more functionality. In these cases, the programmer may use UnixLib, bundled with GCC, which is its default target. Programs compiled with GCC may also target the SharedCLibrary.
In other cases, where the program only requires standard C functions, the SharedCLibrary can create a smaller binary, since programs with UnixLib are presently statically linked, adding around 130kB to the final program. The SharedCLibrary must be used for RISC OS modules written in C.
Links
- Compiler/Library combinations
- !System download containing the 32-bit SharedCLibrary module