For Programmers: Free Programming Magazines  


Home > Archive > C > November 2006 > Re: variable allocated from stack/bss ??









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: variable allocated from stack/bss ??
MQ

2006-11-30, 9:56 pm


Keith Thompson wrote:
> "William Hughes" <wpihughes@hotmail.com> writes:
>
> Yes, that's a very important point.
>
> All the information that's been posted here about stack and BSS may or
> may not be correct for most platforms, or for one specific platform.
> But the fact that the C language does not refer to "stack" or "BSS" is
> critical. Not bothering to mention that fact to the OP was a
> disservice.
>
> The posters in this thread who have talked about stack and BSS as if
> they're universal concepts, or as if they're part of the C language,
> have been misleading anyone who reads their articles. Anyone who
> says, without qualification, that local variables in C are allocated
> "on the stack" and globals area allocated "in BSS" does not understand
> C.
>
> Even if you (that's a generic "you") believe that we should be
> discussing stack and BSS here in comp.lang.c, you should *at least*
> acknowledge that they are features of some implementations, not of the
> language.


And I have said so above. But for intelligent people, you are finding
it hard to grasp that the OP does not care about all implementations,
just his/hers. The answer is correct in the context of his question.
This is the last time I will say this.

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com