Re: > fails. Because heaps are unlimited whilst stacks are not.

Liste des GroupesRevenir à l c 
Sujet : Re: > fails. Because heaps are unlimited whilst stacks are not.
De : fir (at) *nospam* grunge.pl (fir)
Groupes : comp.lang.c
Date : 20. Mar 2024, 18:38:16
Autres entêtes
Organisation : i2pn2 (i2pn.org)
Message-ID : <utf3do$2gj5f$1@i2pn2.org>
References : 1 2 3 4
User-Agent : Mozilla/5.0 (Windows NT 5.1; rv:27.0) Gecko/20100101 Firefox/27.0 SeaMonkey/2.24
fir wrote:
is like that
>
>
0-4M: (dont know some probably reserved)
4M+:  your exe with your exe .bss (static tables)
:stack (of declared size)
:heap (all empty space between stack and dlls)
below 2G (from the and down below) : dlls
>
so in sum i would say that both heap and stack are somewhat limited - by user present ram, stack seems a bit more limited as you need to declare its size
hovever as there is this space between exe and dlls, and yet stack grows down they could both make undeclared as some would not need to declare stack size in fact it just grow until it clashes with heap area
so maybe this stack declaration is kinda mistake at least on win32 or maybe it could be ony treated "one way" the declaration could say stack is at least 100 MB but may be bigger....hovever user also could load more dlls in runtime so they are needed to be put in adres space tooo
stack besides has soem serious advantages over heap..and maybe i shopuld use it more

Date Sujet#  Auteur
20 Mar 24 * > fails. Because heaps are unlimited whilst stacks are not.12fir
20 Mar 24 +* Re: > fails. Because heaps are unlimited whilst stacks are not.4fir
20 Mar 24 i`* Re: > fails. Because heaps are unlimited whilst stacks are not.3fir
20 Mar 24 i `* Re: > fails. Because heaps are unlimited whilst stacks are not.2fir
20 Mar 24 i  `- Re: > fails. Because heaps are unlimited whilst stacks are not.1fir
20 Mar 24 `* Re: > fails. Because heaps are unlimited whilst stacks are not.7bart
20 Mar 24  +* Re: > fails. Because heaps are unlimited whilst stacks are not.4fir
20 Mar 24  i`* Re: > fails. Because heaps are unlimited whilst stacks are not.3fir
20 Mar 24  i +- Re: > fails. Because heaps are unlimited whilst stacks are not.1fir
20 Mar 24  i `- Re: > fails. Because heaps are unlimited whilst stacks are not.1fir
20 Mar 24  `* Re: > fails. Because heaps are unlimited whilst stacks are not.2fir
20 Mar 24   `- Re: > fails. Because heaps are unlimited whilst stacks are not.1fir

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal