|
|
| Beta! | About us | Contact | RSS | Webspace | Tech docs | Downloads | BBC Micro | Gallery | Wallpaper |
|
RISC OS Shared Libraries By Peter Naulls. Published: 29th Sep 2003, 12:41:42.One for everybody Not exactly breaking news, but we've been meaning to cover this for sometime, and it remains relatively new to RISC OS.Ask for the list of things people would like to see in RISC OS - Preemptive Multi-Tasking, improved memory protection, better browsing, etc, and possibly high on the list will appear shared libraries. Shared libraries are just that - they are chunks of code that contain library functions that can be shared by many programs running at once. One of the important features of shared libraries is that they can be upgraded independently of the programs that use them, avoiding relinking. Currently on RISC OS, if you want to use a newer version of a library with a program, you need to create a new binary, which will be statically linked with it, meaning that all the library code is included in your program's RunImage. This is particularly unfortunate for programs using things like UnixLib, which can be frequently changed. There is an existing shared library system on RISC OS, but it's never been extensively used outside of the SharedCLibrary (I only know of one other example). It works via a stubs plus module system - whilst ok as far as it goes for the SharedCLibrary, isn't really ideal in general use. The code needs to exist in a module, which isn't the best, and you need a new SWI base for every module. It's all a bit fiddly and inflexible. Perhaps more importantly, it precludes automated generation of shared libraries from existing Unix build systems. Of course, Linux, Windows and just about every other non-trival OS has a shared library system - in the form of .dll or .so files, but RISC OS has missed out, perhaps for historical reasons, and the minimal memory requirements of most RISC OS programs (memory saving being another advantage of shared libraries). To the Rescue Steven Simpson has started on a shared library system for RISC OS, and you can see his efforts on his RISC OS Shared Libraries page. It's somewhat experimental, and certainly in its early stages, but you are of course encouraged to try it out. Steven tells drobe.co.uk he based his efforts on the requirements of the One True Dynamic Linker, in a document drawn up by ex-RISC OS user, Mark Wooding. Dynamic linking is a subset of the behaviour required by shared libraries, and essentially means code is loaded upon demand. Steven's developments were done using GCCSDK under Unix, which shows you don't need to develop natively. Unfortunately, GCC itself can't yet create suitable code for dynamic linking in RISC OS (the problems being essentially those required to allow modules with GCC). Hopefully in future we'll see practical use of this. In particular, UnixLib would greatly benefit from being a shared library. Links RISC OS Shared Libraries Discussion Viewing threaded comments | View comments unthreaded, listed by date
Please login before posting a comment. Use the form on the right to do so or create a free account. |
Login
Create a new account Forgot your password? Search this website
Featured articles News from the event in the south of the UK 42 comments, latest by diomus on 9/11/08 8:45PM. Published: 19 Oct 2008Four uni coders lined up to improve web browser 33 comments, latest by rjek on 27/04/08 1:01PM. Published: 21 Apr 2008Martin Hansen runs through a few useful desktop tricks you may not be aware of 14 comments, latest by DS1 on 27/3/08 1:13PM. Published: 22 Mar 2008Useful links News and media:Iconbar • MyRISCOS • ArcSite • RISCOScode • ANS • C.S.A.Announce • Archive • Qercus • RiscWorld • GAG-News Top developers: RISC OS Open • RISC OS Ltd • MW Software • R-Comp • Advantage Six • VirtualAcorn Dealers: CJE Micros • APDL • Castle • a4 • X-Ample • Liquid Silicon • Webmonster Usergroups: WROCC • RONE • NKACC • IRUG • SASAUG • ROUGOL • RONWUG • MUG Useful: RISCOS.org • RISCOS.info • Filebase • NetSurf Non-RISC OS: The Register • The Inquirer • Apple Insider • BBC News • Sky News • Google News • xkcd • diodesign |
Recently logged in:
Monty •
druck •
Stoppers •
DaveW •
hubersn •
sa110 •
wrankin42 •
rjek •
bucksboy •
diomus • Stats
© 1999-2008 The Drobe Team. Some rights reserved, click here for more information | Powered by MiniDrobeCMS, based on J4U
"If the main journalist on a RISC OS news site isn't interested [in RISC OS news] then things are pretty black"
Page generated in 0.4576 seconds.