C (169/414)

From:Gürer Özen
Date:09 Jun 2000 at 18:27:01
Subject:Libraries (and still off-topic ;)

AO> The minute you load, open or use the library?

The minute i call a function. I tried to trace it (i'm not good with sas/c
debugger). Library contains a high level api for parsing/creating xml
documents and transferring them on internet. It uses expat code for
actual parsing, and crash happens at that point (when functions call
expat's functions).

AO> A link library may add fields to the data segment of the program and use
AO> these. If the library you port do this then it isn't really re-entrant.

I'm using sas/c's library init code libinitr.o which clones globals
for each task opening the library.

AO> I know it's a quite bold statement, but I'd argue that any link library
AO> can be converted into a shared library. At least if each user gets his
AO> own copy of the library base.

It is now fine as a link library. I'll soon release my program, then
interested people can examine it, and fix shared library problem :)

now offtopic part :)

Memory Management (and protection) is not necessary for virtual memory,
but then you need to code in your apps (afaik ppaint has such an option).

MM is necessary for multiuser support, security, and stability. Even your
old mc040 has a MMU just for this.

quoting Jay Miner:

What's your opinion of the A4000?
...I'm also a little disappointed they didn't use the 040's memory
management facilities...

AmigaOS has microkernel architecture from start. And that's the best one
for a MM kernel. Linux is not. In Linux, applications (i don't say
bad-written, cause there can't be a bugless application, even people like
Linus, Knuth, Stevens write buggy code :) can't crash whole system, ok.
But all drivers run in kernel space, and a buggy driver can crash your
system very badly. This is why gnu people are working on Hurd kernel.
I think it would be easier to add modern features like MM, better scheduler,
etc to amiga kernel than writing a new one from stratch.



Gurer Ozen (madcat@e-kolay.net, madcat@linuxfan.com)

------------------------------------------------------------------------
Take your development to new heights. Work with clients like Dell and
pcOrder. Submit your resume to jobs@liaison.com. Visit us at
http://click.egroups.com/1/4358/1/_/451227/_/960568410/
------------------------------------------------------------------------