* What is volatile data type in DCE?
@ 1994-10-20 16:01 Yuh Ming YONG
1994-10-22 2:52 ` Nathaniel Mishkin
0 siblings, 1 reply; 2+ messages in thread
From: Yuh Ming YONG @ 1994-10-20 16:01 UTC (permalink / raw)
I notice that in DCE client's stub code the call handle is
declared as having a volatile data type as follows:
volatile rpc_call_handle_t call_h = NULL;
Could anyone tell me the significant or meaning of volatile
data type? Thank you very much.
-Yuh Ming
=========================================================================
Yuh Ming, Yong Internet: ymyong@neumann.uwaterloo.ca
Department of Computer Science Phone: (519) 885-1211 x3590
University of Waterloo
200 University Ave. W.
Waterloo, Ontario
Canada N2L 3G1
=========================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: What is volatile data type in DCE?
1994-10-20 16:01 What is volatile data type in DCE? Yuh Ming YONG
@ 1994-10-22 2:52 ` Nathaniel Mishkin
0 siblings, 0 replies; 2+ messages in thread
From: Nathaniel Mishkin @ 1994-10-22 2:52 UTC (permalink / raw)
Yuh Ming YONG (ymyong@neumann.uwaterloo.ca) wrote:
: I notice that in DCE client's stub code the call handle is
: declared as having a volatile data type as follows:
: volatile rpc_call_handle_t call_h = NULL;
: Could anyone tell me the significant or meaning of volatile
: data type? Thank you very much.
"volatile" is an ANSI C keyword that the RPC code uses in an attempt
to keep the C compiler from homing the variable in a register. It
wants it not in a register since the variable is used along an
exception path--i.e., it may be reached by a call to longjmp() having
been made--and it doesn't trust the compiler (which is often not aware
of what longjmp() does to registers) to not mess things up.
--
-- Nat Mishkin
Atria Software, Inc.
mishkin@atria.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1994-10-22 2:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1994-10-20 16:01 What is volatile data type in DCE? Yuh Ming YONG
1994-10-22 2:52 ` Nathaniel Mishkin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox