Deutsch   English   Français   Italiano  
<v2h69b$du7p$1@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!news.nobody.at!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: "Chris M. Thomasson" <chris.m.thomasson.1@gmail.com>
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: <v2h69b$du7p$1@dont-email.me>
References: <v2df79$3ghfd$1@raubtier-asyl.eternal-september.org>
 <v2di7v$3gujt$1@dont-email.me>
 <v2eada$3p6sk$1@raubtier-asyl.eternal-september.org>
 <v2edbr$3pl2i$1@dont-email.me>
 <cone.1716245955.313207.394874.1004@monster.email-scan.com>
 <v2gl3u$7hoj$1@dont-email.me>
 <cone.1716247265.849807.395262.1004@monster.email-scan.com>
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: <cone.1716247265.849807.395262.1004@monster.email-scan.com>
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 <stdio.h>

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?