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]