Hi again.

Jakub has already told me on IRC that current stacks do not grow and
there is no protection against overflow.
The question is, how difficult would it be to implement growing
stacks? Is it even possible with the way memory management is
currently implemented?

There is also one possibility that would be relatively simple to
implement, and that is segmented stacks. Segmented stacks are
discontiguous and the segments are allocated on demand. There are two
drawbacks. A minor one is that there is an overhead of few
instructions per function call.  A major one is that it needs linker
support, and currently only gold linker supports it. However, HelenOS
can't be build with gold linker (I tried and it can't digest our
linker script). Perhaps someone could fix that?

-- Jirka Z.

_______________________________________________
HelenOS-devel mailing list
[email protected]
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to