Search the web
Sign In
New User? Sign Up
c4swimmers · India's First C/C++ Programming Portal
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Hear how Yahoo! Groups has changed the lives of others. Take me there.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
global variable issue   Message List  
Reply | Forward Message #9007 of 9130 |
RE: [c4swimmers.net] global variable issue

Check the comments inline.





Thanks and Regards,

Pradeep C K





This e-mail and any attachments thereto, are intended only for use by
the addressee(s) named herein and contain Honeywell confidential
information. If you are not the intended recipient of this e-mail, you
are hereby notified that any dissemination, distribution or copying
which amounts to misappropriation of this e-mail and any attachments
thereto, is strictly prohibited. If you have received this e-mail in
error, please immediately notify me and permanently delete the original
and any copy of any e-mail and any printout thereof

________________________________



From: c4swimmers@yahoogroups.com [mailto:c4swimmers@yahoogroups.com] On
Behalf Of sume gsr

Sent: Thursday, June 25, 2009 11:30 AM

To: c4swimmers@yahoogroups.com

Subject: [c4swimmers.net] global variable issue



Hello c

We know that the scope of global variable is for large page.
What if code size is too large more than some 30k bytes does the value
of global variables persist or it looses its values? Does it have any
restriction that it can hold value only till some size of code or any
thing like that?

[CK: This must be specific to Operating System and got nothing to do
with C programming. Correct me if I am wrong]



What is the reason for global variables loosing values?

[CK: Can you give us more details about this. Interesting that you could
do something like this.]



Can we call a normal function from an ISR routine, does it affects code.

[CK: yes, we can call normal functions from an ISR. However, the
compiler should of course obey the calling convention so that no needed
register value is destroyed by the normal function. Thus, in general,
the ISR must preserve all the scratch registers before calling the
normal function. Generally, this is true even if the called function
does not use any register! But this must be refrained.

And size of the code is dependant on the OS.]



plz help me





[Non-text portions of this message have been removed]




Thu Jul 2, 2009 6:24 am

ckpradip
Offline Offline
Send Email Send Email

Forward
Message #9007 of 9130 |
Expand Messages Author Sort by Date

hello c          we know that the scope of global variable is for large page. what if code size is too large more than some 30k bytes does the value of...
sume gsr
sume_gsr@...
Send Email
Jun 29, 2009
2:14 pm

Check the comments inline. Thanks and Regards, Pradeep C K This e-mail and any attachments thereto, are intended only for use by the addressee(s) named herein...
C K, Pradeep
ckpradip
Offline Send Email
Jul 3, 2009
5:58 am

... i want data structure link list program so please send good understanding progam...
mp.linganathan
Offline Send Email
Jul 20, 2009
3:14 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help