From: Hans-Bernhard Broeker Newsgroups: comp.os.msdos.djgpp Subject: Re: volatile Date: 4 Apr 2001 14:17:41 GMT Organization: Aachen University of Technology (RWTH) Lines: 31 Message-ID: <9afae5$koe$1@nets3.rz.RWTH-Aachen.DE> References: <3ACAD2A7 DOT 7256A296 AT hotmail DOT com> <200104040602 DOT CAA21050 AT envy DOT delorie DOT com> <3ACAFB67 DOT 66B0523F AT hotmail DOT com> NNTP-Posting-Host: acp3bf.physik.rwth-aachen.de X-Trace: nets3.rz.RWTH-Aachen.DE 986393861 21262 137.226.32.75 (4 Apr 2001 14:17:41 GMT) X-Complaints-To: abuse AT rwth-aachen DOT de NNTP-Posting-Date: 4 Apr 2001 14:17:41 GMT Originator: broeker@ To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Gustavsson Tommy Ext wrote: > DJ Delorie wrote: >> > I need help ..... >> >> No, you need to give us examples. > volatile ARRAY_(uint16_t) a = (ARRAY_(uint16_t)) > array; [...] With all due respect: that's not an example. How is anybody except you supposed to know what ARRAY_() does? Or what "uploading pointers", an expression you used in your first posting, is supposed to mean? > If I leave out volatile, a is not initialized in function fill (it > is the same before and after ). It's absolutely impossible to know how you judge whether it 'is the same', from your example. At the very least, you'ld have to show us your cout translation function for type ARRAY_(uint16_t), and/or what the precise output of this part of your program is. Better yet: provide a self-contained, compilable example, instead of a snippet as meaningless as this one. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.