Re: Best Way to Create String Variables in Assembly
- From: "randyhyde@xxxxxxxxxxxxx" <randyhyde@xxxxxxxxxxxxx>
- Date: 10 Aug 2005 15:43:23 -0700
Robert Redelmeier wrote:
>
> Yes, brk() requires a LIFO usage. This doesn't suit all
> apps, particularly not multi-threaded. Personally, I prefer
> to layout .bss with everything that might ever be required.
> On a CoW system, it doesn't cost anything until used.
>
BSS works great if your maximum memory allocation needs are
deterministic and you can calculate them prior to compilation.
And there is a *tiny* cost to grossly overallocating in the BSS section
- the OS still has to set up the page tables and the system consumes
*real* memory for those entries. Though this is such a ridiculously
small cost that it probably isn't worth mentioning.
Cheers,
Randy Hyde
.
- Follow-Ups:
- Re: Best Way to Create String Variables in Assembly
- From: bwaichu{at}yahoo.com
- Re: Best Way to Create String Variables in Assembly
- References:
- Best Way to Create String Variables in Assembly
- From: bwaichu{at}yahoo.com
- Re: Best Way to Create String Variables in Assembly
- From: T.M. Sommers
- Re: Best Way to Create String Variables in Assembly
- From: Charles A. Crayne
- Re: Best Way to Create String Variables in Assembly
- From: T.M. Sommers
- Re: Best Way to Create String Variables in Assembly
- From: bwaichu{at}yahoo.com
- Re: Best Way to Create String Variables in Assembly
- From: T.M. Sommers
- Re: Best Way to Create String Variables in Assembly
- From: bwaichu{at}yahoo.com
- Re: Best Way to Create String Variables in Assembly
- From: Robert Redelmeier
- Re: Best Way to Create String Variables in Assembly
- From: randyhyde@xxxxxxxxxxxxx
- Re: Best Way to Create String Variables in Assembly
- From: Robert Redelmeier
- Best Way to Create String Variables in Assembly
- Prev by Date: Re: Betov on licencing (recycled yet again).
- Next by Date: Re: Yes, we get to point out Rene's exaggerations about RosAsm, Again
- Previous by thread: Re: Best Way to Create String Variables in Assembly
- Next by thread: Re: Best Way to Create String Variables in Assembly
- Index(es):