Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Chris M. Thomasson" Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: Can someone please verify the execution trace of this? Date: Mon, 20 May 2024 21:00:42 -0700 Organization: A noiseless patient Spider Lines: 53 Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 21 May 2024 06:00:43 +0200 (CEST) Injection-Info: dont-email.me; posting-host="6ad02092fbd70bc476a2c661bc081089"; logging-data="456953"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18LmRF4OpddsremJgZ6QBAxTqd+EdfBsd8=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:+Qf1LdhCTlIpoOVGDf0/ObOBLgI= In-Reply-To: Content-Language: en-US Bytes: 2660 On 5/20/2024 4:21 PM, Sam wrote: > olcott writes: > >> On 5/20/2024 5:59 PM, Sam wrote: >>> >>> Big deal. You were hoping to impress someone? I've got about a decade >>> on you, and I wrote my own K&R C compiler, long before Y2K. I don't >>> brag about it. Sit down, kid. >>> >> >> People were acting like I was totally clueless. > > Well, there's a name for this phenomenon. It's called "No shit, Sherlock?". > >>> Of course. A copyright statement. How impressive. >>> >>> Your delusions of self-grandeur are only your delusions, not shared >>> by anyone else. >>> >> >> I am only asking about the behavior of a single >> C function template. > > Well, I don't know how to break the news to you, buddy. You better be > prepared to continue asking, for the foreseeable future. Mastering the > art of copy/paste is highly recommended. > I am still not sure what olcott is asking. Will this halt? Not if the system has infinite time and energy... ______________________ #include void foobar(unsigned int volatile* a) { for (;;) { ++(*a); } } int main() { unsigned int a = 0; foobar(&a); printf("a = %u", a); return 0; } ______________________ What is his point?