Evangelism in googleland (was: How Globals is handle in C.)



Keith Thompson wrote:
> "sant" <santoshnayak9@xxxxxxxxx> writes:
> 
>> "Hello World" string will be stored in the Initialized data
>> segment. In that it is stored in Read Only Memory.
>>
>> temp will store the starting address of this Read Only string.
>> I think temp is stored in stack  if you have not declared it as
>> global.
> 
> As we've said here hundreds or thousands of times, *please*
> provide some context when you post a followup.  Not everyone can
> easily see the article to which you're replying. 
> group.google.com makes this gratuitously difficult, but there is
> a workaround.  See <http://cfaj.freeshell.org/google/> for details.

Sigh.  The work of civilizing the googolian barbarian hordes is
never done.  After we get past the first problem we have to worry
about topposting, and after that about snipping.  Of course
topicality comes in also.  Once in a while we run into one that
catches on immediately, which makes it worthwhile.

-- 
"The power of the Executive to cast a man into prison without
 formulating any charge known to the law, and particularly to
 deny him the judgement of his peers, is in the highest degree
 odious and is the foundation of all totalitarian government
 whether Nazi or Communist." -- W. Churchill, Nov 21, 1943


.



Relevant Pages

  • Re: How Globals is handle in C.
    ... > "Hello World" string will be stored in the Initialized data segment. ... I think> temp is stored in stack if you have not declared it as global. ... The C language says nothing about an "initialized data segment" or "read only memory". ...
    (comp.lang.c)
  • Re: copymemory basic question
    ... 64: temp = s1 ... It's calling vbaStrCopyin the runtime library for each string assignment. ... The String data is held in BSTR memory packets. ... it seems that the optimizer in VB copies the ...
    (microsoft.public.vb.winapi)
  • Re: How Globals is handle in C.
    ... "Hello World" string will be stored in the Initialized data segment. ... that it is stored in Read Only Memory. ... temp will store the starting address of this Read Only string. ...
    (comp.lang.c)
  • Re: copymemory basic question
    ... The String data is held in BSTR memory packets. ... it seems that the optimizer in VB copies the pointers ... > Dim temp As String ...
    (microsoft.public.vb.winapi)
  • Re: Fast string operations
    ... Looping: I thought looping over arrays in managed code was "slow" ... array handling and such. ... The problem with TrimHelper is that it always returns a new string instance. ... The customer perceives this as a memory leak. ...
    (microsoft.public.dotnet.languages.csharp)