Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

7 May, 2024: fms is rebuilding. Don't expect much in that section for quite a few days, maybe longer.


devel / comp.lang.c / Re: bart cc32n.c

SubjectAuthor
* bart cc32n.cPaul Edwards
+* Re: bart cc32n.cJanis Papanagnou
|`* Re: bart cc32n.cPaul Edwards
| +* Re: bart cc32n.cbart
| |`* Re: bart cc32n.cScott Lurndal
| | `- Re: bart cc32n.cbart
| +* Re: bart cc32n.cDavid Brown
| |+- Re: bart cc32n.cKaz Kylheku
| |+* Re: bart cc32n.cbart
| ||+* Re: bart cc32n.cDavid Brown
| |||`* Re: bart cc32n.cPaul Edwards
| ||| `* Re: bart cc32n.cDavid Brown
| |||  `* Re: bart cc32n.cbart
| |||   +* Re: bart cc32n.cDavid Brown
| |||   |`- Re: bart cc32n.cJanis Papanagnou
| |||   +* Re: bart cc32n.cKenny McCormack
| |||   |+- Re: bart cc32n.cbart
| |||   |+* Re: bart cc32n.cMalcolm McLean
| |||   ||`- Re: bart cc32n.cDavid Brown
| |||   |`- Re: bart cc32n.cJanis Papanagnou
| |||   `* Re: bart cc32n.cKaz Kylheku
| |||    `- Re: bart cc32n.cbart
| ||`- Re: bart cc32n.cJohn McCue
| |`* Re: bart cc32n.cPaul Edwards
| | `* Re: bart cc32n.cDavid Brown
| |  +* Re: bart cc32n.cbart
| |  |`* Re: bart cc32n.cKaz Kylheku
| |  | `- Re: bart cc32n.cbart
| |  `* Re: bart cc32n.cPaul Edwards
| |   +* Re: bart cc32n.cDavid Brown
| |   |+* Re: bart cc32n.cbart
| |   ||`* Re: bart cc32n.cDavid Brown
| |   || +* Re: bart cc32n.cbart
| |   || |+- Re: bart cc32n.cKaz Kylheku
| |   || |`* Re: bart cc32n.cDavid Brown
| |   || | `* [meta] Re: bart cc32n.cJanis Papanagnou
| |   || |  +- Re: [meta] Re: bart cc32n.cbart
| |   || |  `- Re: [meta] Re: bart cc32n.cDavid Brown
| |   || `* Re: bart cc32n.cPaul Edwards
| |   ||  `- Re: bart cc32n.cDavid Brown
| |   |`* Re: bart cc32n.cPaul Edwards
| |   | `- Re: bart cc32n.cDavid Brown
| |   +* Re: bart cc32n.cTim Rentsch
| |   |`* Re: bart cc32n.cbart
| |   | +- Re: bart cc32n.cMalcolm McLean
| |   | `* Re: bart cc32n.cTim Rentsch
| |   |  `* Re: bart cc32n.cbart
| |   |   +- Re: bart cc32n.cKaz Kylheku
| |   |   `* Re: bart cc32n.cTim Rentsch
| |   |    `* Re: bart cc32n.cKenny McCormack
| |   |     `- Re: bart cc32n.cTim Rentsch
| |   `* Re: bart cc32n.cKaz Kylheku
| |    `* Re: bart cc32n.cKenny McCormack
| |     `- Re: bart cc32n.cDavid Brown
| `* Re: bart cc32n.cJanis Papanagnou
|  `- Re: bart cc32n.cPaul Edwards
`* Re: bart cc32n.cbart
 +- Re: bart cc32n.cPaul Edwards
 +* Re: bart cc32n.cPaul Edwards
 |`* Re: bart cc32n.cPaul Edwards
 | `- Re: bart cc32n.cPaul Edwards
 `* Re: bart cc32n.cbart
  `* Re: bart cc32n.cbart
   `* Re: bart cc32n.cKeith Thompson
    `- Re: bart cc32n.cPaul Edwards

Pages:123
Re: [meta] Re: bart cc32n.c

<up88ka$ffni$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33367&group=comp.lang.c#33367

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: [meta] Re: bart cc32n.c
Date: Mon, 29 Jan 2024 14:19:06 +0100
Organization: A noiseless patient Spider
Lines: 20
Message-ID: <up88ka$ffni$2@dont-email.me>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me>
<up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me>
<up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me>
<up52g3$3qru0$1@dont-email.me> <up5jf7$3u71s$1@dont-email.me>
<up5mp1$3uocj$1@dont-email.me> <up5tpd$ac2$1@dont-email.me>
<up66nt$1s4b$1@dont-email.me> <up68ql$27i5$1@dont-email.me>
<up7dkb$bb6b$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Mon, 29 Jan 2024 13:19:06 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="97a86bc186f2ce7a3f5aa28c9d36f604";
logging-data="507634"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+7/4aH5YC3TBlwgZ3581YreBYhGuGOEnI="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:xIHNLU9GOwgsPUWrLmsdZIH8Wbo=
Content-Language: en-GB
In-Reply-To: <up7dkb$bb6b$1@dont-email.me>
 by: David Brown - Mon, 29 Jan 2024 13:19 UTC

On 29/01/2024 06:38, Janis Papanagnou wrote:
> On 28.01.2024 20:10, David Brown wrote:

>>
>> Toys can be big, can't they? (Again, I can't answer for JP.)
>
> I'm not sure I'd have found a better reply of appropriate terseness.
>

Just to be clear - I did not say or intend to imply that I think the
program here is a "toy". I haven't commented on the program itself. I
/have/, in the past, referred to some programs or projects as "toys",
but I do that in context, and I might mean something different by the
word. All I was saying here is that having a large line count does not
in itself imply that a piece of code is not a "toy" - for whatever
meaning that term has.

(I really should have put a smiley on that comment, or even better,
stayed out of the disagreement entirely.)

Re: bart cc32n.c

<up8a5d$fqf9$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33368&group=comp.lang.c#33368

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.furie.org.uk!usenet.goja.nl.eu.org!weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Mon, 29 Jan 2024 14:45:16 +0100
Organization: A noiseless patient Spider
Lines: 124
Message-ID: <up8a5d$fqf9$1@dont-email.me>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me>
<up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me>
<up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me>
<up52g3$3qru0$1@dont-email.me> <up5jf7$3u71s$1@dont-email.me>
<up5mp1$3uocj$1@dont-email.me> <up5tpd$ac2$1@dont-email.me>
<up6t9o$5e8s$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 29 Jan 2024 13:45:17 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="97a86bc186f2ce7a3f5aa28c9d36f604";
logging-data="518633"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18E2ExNATk8cvKAIQ1Fk29Ga8qA9iTwXbA="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:TdswgHJK2bANUepTKQhjy5o5ODc=
Content-Language: en-GB
In-Reply-To: <up6t9o$5e8s$1@dont-email.me>
 by: David Brown - Mon, 29 Jan 2024 13:45 UTC

On 29/01/2024 01:59, Paul Edwards wrote:
> On 29/01/24 00:01, David Brown wrote:
>
>> But if the original source is not available, or the means to compile (or
>> transpile) it is not available, then it's more "binary only" or
>> "abandonware" than C source.
>
> Yes, you can consider it to be "binary only",
> although that would be a too-harsh categorization,
> as I have indeed been able to make changes to
> the code to fix other issues.
>

That will depend on how close the transpiled C is to the original
source, and I have little idea about that.

>> I'm not saying this groups topicality is ideal for any particular
>> purpose.  I am not saying that others do not post off-topic.  I am not
>> saying the topicality of the group should not be changed.  I am just
>> saying that I thought the original post was off-topic, and that the OP
>> was more likely (not guaranteed, but more likely) to get help in a
>> different way.
>
> "more likely" based on what statistics or analysis?
>

None - it was based on my expectations and assumptions.

> I'm not aware of anywhere that can beat 24 hours.

That is a non sequitur. If I say "you are unlikely to roll 12 on two
dice - you are more likely to get 7", and you roll two dice getting a
double six on your first attempt, it does not mean that event was more
likely than getting a 7.

Note that you got help as a result of replies from Bart - replies that
you might well have got just the same if you had emailed him or
communicated through the project hosting site (if there had been one for
the tool). It is, of course, conceivable that he would not have
bothered replying to you by email - perhaps people saying your post was
off-topic is what prompted him to look at the issue and take it further.
That would be ironic!

>
>> It's not patronising.  It's giving what I hope is helpful advice.  Have
>> you never asked someone - online or in real life - for help, and been
>> told that they can't do much there, but you might get an answer over
>> there?
>
> You haven't provided an "over there" that has a
> snowball's chance in hell of producing a solution
> in 24 hours.
>

Then you have a challenge to build up more of a community "over there".
(Though as I noted above, the "over there" I suggested included emailing
Bart, who was the one that found the issue, or at least turned it into
something others could help with.)

I see there has been some other discussions about possibly expanding the
scope of what is on-topic in c.l.c. I personally am not adverse to
that. I would not mind at all if discussions of particular C compilers
was considered topical. I think there's plenty that could be said about
commonly used tools that could be of benefit to many people here, and
occasional discussions about niche tools could be interesting even if
they are of no practical use to most people.

I still think even then that something that is communication between two
people is usually best by email unless there is good reason to suspect
that others will want to listen in. And I still think your public
domain project would do better by having as much discussion as possible
within that group, making it a livelier environment that can grow.
Niche groups need care and nurture - even if you are confident that
you'll get faster answers elsewhere, it can still be better for the
growth of that group if you discuss the issue there first.

>> I certainly didn't tell him to go away.  I told him that we can try and
>> help with C issues, but it's unlikely that this is the best place to
>> help with build issues for some large lump of C code.
>
> Unlikely based on what analysis or statistics?
>
> And your prediction was totally incorrect regardless.
> This is a proven good place.
>
> Partly because Bart hangs out here of course.
>
> Because you're hitting something different now.
>
> A public post saying "can anyone help" is very
> different from harassing a specific individual
> (who you haven't paid either) who has told you
> "I'm not interested in this software - don't
> come to me for support" (or words to that effect).

True.

>
> I haven't violated that wish. I posted in public,
> not email. Unless you want to quibble that I
> shouldn't have mentioned his name at all in the
> public post.

Well, the post /was/ addressed to him - in thread title and greeting.

But you have a fair point here, and it is absolutely a reasonable
consideration.

>
> I consider I did the right thing. And I got the
> result I wanted.
>
> And now maybe you have a result that is useful
> to you (or someone you know, or at a future
> workplace) - you can write a Win64 utility and
> if you do it a certain way, you can run it on
> Linux with ridiculously small overhead.
>

That may be of use to some people, yes.

Re: bart cc32n.c

<up8h0a$gvl0$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33369&group=comp.lang.c#33369

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!usenet.goja.nl.eu.org!paganini.bofh.team!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Mon, 29 Jan 2024 16:42:02 +0100
Organization: A noiseless patient Spider
Lines: 199
Message-ID: <up8h0a$gvl0$1@dont-email.me>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me>
<up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me>
<up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me>
<up52g3$3qru0$1@dont-email.me> <up5jf7$3u71s$1@dont-email.me>
<up6rsb$58g9$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 29 Jan 2024 15:42:02 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="97a86bc186f2ce7a3f5aa28c9d36f604";
logging-data="556704"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+KnSzUTyVUX2NFVFSLk2eYfE69MiBt6Ds="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:H+DGhPSifqg58JHLexnlppN36Sk=
Content-Language: en-GB
In-Reply-To: <up6rsb$58g9$1@dont-email.me>
 by: David Brown - Mon, 29 Jan 2024 15:42 UTC

On 29/01/2024 01:35, Paul Edwards wrote:
> On 28/01/24 21:05, David Brown wrote:
>
>> The BCC compiler is not written in C - it is, AFAIUI, written in Bart's
>> own language.  (gcc was, at that time, written in C.)
>>
>> This is a C /discussion/ group, not a support group.  It is primarily
>> for discussing the C language, standards, and standard library, and for
>> discussing bits of C code.  We don't support compilers or C software. We
>> might try to help if it is tools we are familiar with, but we are not a
>> support group.  The primary support forum for gcc is the "gcc-help"
>> mailing list.  I don't know where the primary support forum is for BCC,
>> but it is not here.
>
> I'm not sure this is considered to be "bcc".
>
> BCC was actually on github or something. The
> code that I am using was only temporarily
> placed somewhere so that I could download it.
>
> Again - if anyone supports this code, it's me.
>
> I can report a problem - to myself.
>
> I already did that. And it was beyond my ability
> to solve in a reasonable timeframe so I tried my
> luck here, and got exactly what I needed within
> 24 hours flat.
>
> This is quite literally the best support forum
> for this (unnamed software) that I am aware of.

That may be true. But it is still not a support forum for software like
that. It is entirely possible that this group contains some of the best
COBOL programmers around - but it would be inappropriate to post COBOL
questions here. It could be that this group would be able to provide
better support for thousands of old C projects than any other forum -
but it is still not a support forum for that software. If everyone with
a program written in C, or an issue trying to compile and build a
program written in C, were to post here - what do you think would
happen? Perhaps to start with there would be helpful answers on
difficulties with make, autotools, MSVC, and whatever else. But then
the regulars would start getting fed up - the group would lose its
appeal to them, and they'd move elsewhere. No one would get any better
answers than they'd find from other web-based forums, and the group
would be ruined for the people that are here, now.

As I have said, I am not adverse to viewing posts like yours as
on-topic, or more actively changing what is seen as topical. But
changes to topicality in a group must be done carefully. That this is
the best place to get answers to a particular type of question is /not/
a reason to consider the post on-topic, or to say that posting it here
was the right thing for the group. It might have been the right thing
for /you/, at least in the short term - but maybe if you make lots of
off-topic posts, people will stop answering you. Your post was
successful from your viewpoint, but perhaps not from the group's viewpoint.

(Perhaps the ensuing discussion of topicality /will/ be good for the
group. That remains to be seen.)

>
>> None of this means you can't make off-topic posts - there is nothing to
>> stop you doing so.  But you should be aware about what is on-topic and
>> what is not, and how you can make your posts closer to topical, and
>> better suited to getting help.  For example, instead of posting a pile
>> of compiler error messages, you could have looked at the code and tried
>> to see what C code in "cc32n.c" was the cause of the problem.
>
> I had already looked at it. But I wasn't even sure
> I was expecting a result I shouldn't be expecting.
> I knew what cc64.c did, but this was the first
> at least recent attempt at running cc32n.c.
>
>> Isolate
>> an example, add the minimum required typedefs and surrounding code to
>> get something that is comprehensible to any C programmer.  Try it with
>> different compilers - <https://godbolt.org> is perfect for this.  Then
>> you'd have something that is on-topic, and which people can answer.
>
> I already did try with different compilers which
> is why I started wondering whether I had incorrect
> expectations from the software.

A small example section would have been much more helpful to people here
than the build messages.

>
>>> You're about as unlikely to change my mind
>>> about that as vice-versa.
>>
>> I'm hoping to help you help yourself.
>
> I am already doing that.
>
>>> There are a handful of people who are interested
>>> in public domain software. I can give some names
>>> if that is of any relevance (if you tell me what
>>> the relevance is first - like - what action will
>>> you take when I give you the first name).
>>
>> No need for names, of course.  I am just trying to get an idea if there
>> are actually other people involved in this.  And if so, then details of
>> your tools and work on outdated compilers, outdated computers, and
>> outdated languages would be best handled in a group who are interested
>> in that.  You'd be helping them, and they would be helping you.  Surely
>> that would be a good thing?
>
> It's a question of technical expertise. In
> that circle, I'm the one most likely to be
> able to solve the problem.
>

Even then, talking about it in the group makes people feel included and
keeps them informed that you are working on such issues. (Perhaps I am
concerning myself too much here, and you already have enough lively
discussions in that group.)

>>> So the announcement is that you can have a
>>> reasonable C90-compliant public domain
>>> compiler that runs on a 32-bit system (I am
>>> using Windows 2000 but you can also use
>>> PDOS/386). It produces 64-bit code though.
>>> Using the Microsoft calling convention.
>>
>> I don't see anything against making such an announcement in this group,
>> but you can expect that no one will care (and that people will tell you
>> they don't care).
>
> That's all fine by me.
>
>> There will not be many people for whom this is
>> remotely relevant or interesting - that's why you should work with your
>> community of people who /have/ expressed an interest.
>
> The bottleneck is technical expertise, not interest.
>

OK.

>>> However, also an hour ago (here's the next
>>> announcement), you can run (certain) 64-bit PE
>>> Win64 executables (that are dependent on
>>> msvcrt.dll) on Linux - even though Linux uses
>>> a different function call convention.
>>
>> Hasn't wine supported this for a decade or two?
>
> Theoretically yes. I tried installing it on a
> few different Linux machines and after doing
> massive downloads, it didn't work. And any
> issue in it would probably take months of
> effort trying to understand (or even build
> the code from source).
>

I've always installed wine with "apt-get install wine", or with Steam.
I can't say I have had to run many Windows programs on Linux (I also
have an old Windows machine at the office), but it has not been an issue
for me. But I guess experiences vary.

> As of an hour or so ago, you can now get a
> 103k executable that does that (limited, but
> what I need) task. It's UCX64L from the UCARM
> section (as opposed to UCX64 from the UCX64
> section) at http://pdos.org .
>
>>> So - in the case of Macbeth - if EVERYONE owned
>>> it (as opposed to NOONE owning it - as you say
>>> the definition of public domain is), then what
>>> exactly would that mean?
>>
>> Everyone would be entitled to a share of any royalties when the play was
>> performed.
>
> Everyone effectively can do that. The
> government in your country can effectively
> get royalties from the play and distribute
> them according to the democratic wishes of
> the people who own it.
>
> But regardless, yes, I see why you prefer
> the term unowned.

OK. And I also see what you are trying to do with your public domain
software. (That doesn't mean I agree that it's a useful endeavour, but
there's nothing wrong with having different philosophies.) So now
that's all cleared up, we can leave that off-topic discussion!

>
>> with international law experience.  An alternative, that is not absurdly
>> expensive, would be to look at things like the Creative Commons CCO
>> license as a way of getting the effect you want.)
>
> I already do mention you can follow CC0 if
> you wish and provide a link.
>
> BFN. Paul.
>


Click here to read the complete article
Re: bart cc32n.c

<86v87bbqke.fsf@linuxsc.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33403&group=comp.lang.c#33403

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17687@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Mon, 29 Jan 2024 16:41:37 -0800
Organization: A noiseless patient Spider
Lines: 29
Message-ID: <86v87bbqke.fsf@linuxsc.com>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me> <up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me> <up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me> <up52g3$3qru0$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="e3f3945cb7164e1654b6d005c9df0f57";
logging-data="727571"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+q7QQDbMyZK5+ySJetHvpYRO7MhswQtAE="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:roAa2TWjnpkrMGI4Wpf+gOxww10=
sha1:FyJ+9thyK3Etymr3eKOS2Jtz8rM=
 by: Tim Rentsch - Tue, 30 Jan 2024 00:41 UTC

Paul Edwards <mutazilah@gmail.com> writes:

[..is the code in cc32n.c topical?..]

> I have a different opinion about whether a
> C compiler written in C is on-topic in a C
> support forum.

Any program written in C, whether or not it's a compiler, is
topical in comp.lang.c.

Unfortunately neither cc32n.c nor cc64.c is written in C. Rather
they are written in a language that resembles C, and may even be
compilable by some "C" compilers in a non-conforming mode, but
they are not written in standard C.

If you want help with one of these programs, and want to get it
in this newsgroup, get the code to compile under, for example,
gcc -std=c99 -pedantic-errors or gcc -std=c11 -pedantic-errors.
Until that is done people are quite right to tell you to look
for help elsewhere.

Moreover, the code in these programs is a disaster. No sensible
person would spend any time on it if they have a choice. If you
want to waste your time on it, that's up to you. I don't see any
incentive for anyone else to spend any time on it at all, except
perhaps as a learning exercise to see how truly awful bad code
can be. It's easy to believe no one wants to take credit for
this mess.

Re: bart cc32n.c

<20240129171130.110@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33406&group=comp.lang.c#33406

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!feeder8.news.weretis.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-6894@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Tue, 30 Jan 2024 01:20:34 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20240129171130.110@kylheku.com>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me>
<up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me>
<up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me>
<up52g3$3qru0$1@dont-email.me>
Injection-Date: Tue, 30 Jan 2024 01:20:34 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="aa3290a72f6c22d61c05503829253c16";
logging-data="734642"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AutW/EIKOWuU8UUXA/1urlcQikwSL5aI="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:tijhmnmJjLyVtmFFotRhZgdkx6k=
 by: Kaz Kylheku - Tue, 30 Jan 2024 01:20 UTC

On 2024-01-28, Paul Edwards <mutazilah@gmail.com> wrote:
> I have a different opinion about whether a
> C compiler written in C is on-topic in a C
> support forum.

Say, would you be okay if all the traffic from the GCC mailing lists and
the Clang discourse forum were copies to comp.lang.c?

https://discourse.llvm.org/c/clang/6

https://gcc.gnu.org/lists.html

Why or why not? Which gcc mailing lists would you gateway here?
gcc-help? gcc-bugs? gcc? gcc-patches? All of them?

None of us here have open source projects; you're special!

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: bart cc32n.c

<up9jb1$m0i7$2@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33408&group=comp.lang.c#33408

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Tue, 30 Jan 2024 01:28:01 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <up9jb1$m0i7$2@news.xmission.com>
References: <up00qe$2pg54$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me> <up52g3$3qru0$1@dont-email.me> <20240129171130.110@kylheku.com>
Injection-Date: Tue, 30 Jan 2024 01:28:01 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="721479"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Tue, 30 Jan 2024 01:28 UTC

In article <20240129171130.110@kylheku.com>,
Kaz Kylheku <433-929-6894@kylheku.com> wrote:
>On 2024-01-28, Paul Edwards <mutazilah@gmail.com> wrote:
>> I have a different opinion about whether a
>> C compiler written in C is on-topic in a C
>> support forum.
>
>Say, would you be okay if all the traffic from the GCC mailing lists and
>the Clang discourse forum were copies to comp.lang.c?

Davy (and others, both presently, and going back through the years) have
made it abundantly clear that "stuff I like" is on-topic, and stuff I don't
isn't.

Very subjective, that.

--
https://en.wiktionary.org/wiki/res_ipsa_loquitur

Re: bart cc32n.c

<up9k5m$mkt1$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33412&group=comp.lang.c#33412

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!news.chmurka.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Tue, 30 Jan 2024 01:42:14 +0000
Organization: A noiseless patient Spider
Lines: 43
Message-ID: <up9k5m$mkt1$1@dont-email.me>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me>
<up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me>
<up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me>
<up52g3$3qru0$1@dont-email.me> <86v87bbqke.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 30 Jan 2024 01:42:14 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1d628cc0776738c82c53ff623f6818a6";
logging-data="742305"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19xM289gFL4ljfTU0dyfn1As5ws0kY5xHo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:2BcoL4ZOv5ytOta6ZxFxAM7Jlho=
Content-Language: en-GB
In-Reply-To: <86v87bbqke.fsf@linuxsc.com>
 by: bart - Tue, 30 Jan 2024 01:42 UTC

On 30/01/2024 00:41, Tim Rentsch wrote:
> Paul Edwards <mutazilah@gmail.com> writes:
>
> [..is the code in cc32n.c topical?..]
>
>> I have a different opinion about whether a
>> C compiler written in C is on-topic in a C
>> support forum.
>
> Any program written in C, whether or not it's a compiler, is
> topical in comp.lang.c.
>
> Unfortunately neither cc32n.c nor cc64.c is written in C. Rather
> they are written in a language that resembles C, and may even be
> compilable by some "C" compilers in a non-conforming mode, but
> they are not written in standard C.
>
> If you want help with one of these programs, and want to get it
> in this newsgroup, get the code to compile under, for example,
> gcc -std=c99 -pedantic-errors or gcc -std=c11 -pedantic-errors.
> Until that is done people are quite right to tell you to look
> for help elsewhere.

I tried those options on these programs, which all failed:

- Tiny C source code (0.9.27)

- Some modules of Lua 5.4 interpreter

- Pico C (C interpreter)

- piet.c (interpreter)

However, who are YOU to tell ME what options to use when compiling my C
code?

One thing I've learned here is that /I/ get to stipulate how my programs
are compiled. Do you routinely get inside the makefiles that you come
across and add your own options?

Re: bart cc32n.c

<up9uk4$rmmf$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33415&group=comp.lang.c#33415

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: malcolm.arthur.mclean@gmail.com (Malcolm McLean)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Tue, 30 Jan 2024 04:40:36 +0000
Organization: A noiseless patient Spider
Lines: 57
Message-ID: <up9uk4$rmmf$1@dont-email.me>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me>
<up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me>
<up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me>
<up52g3$3qru0$1@dont-email.me> <86v87bbqke.fsf@linuxsc.com>
<up9k5m$mkt1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Tue, 30 Jan 2024 04:40:37 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="c3e0a6da9f43376c9d7b12b2f973ac5a";
logging-data="907983"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/JzEWxS0P7PyDhBmRmsRK6Sd8L4xfFm4Y="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:DsRFcaNTBT8KcMV2H2uYXhkEFFg=
In-Reply-To: <up9k5m$mkt1$1@dont-email.me>
Content-Language: en-GB
 by: Malcolm McLean - Tue, 30 Jan 2024 04:40 UTC

On 30/01/2024 01:42, bart wrote:
> On 30/01/2024 00:41, Tim Rentsch wrote:
>> Paul Edwards <mutazilah@gmail.com> writes:
>>
>> [..is the code in cc32n.c topical?..]
>>
>>> I have a different opinion about whether a
>>> C compiler written in C is on-topic in a C
>>> support forum.
>>
>> Any program written in C, whether or not it's a compiler, is
>> topical in comp.lang.c.
>>
>> Unfortunately neither cc32n.c nor cc64.c is written in C.  Rather
>> they are written in a language that resembles C, and may even be
>> compilable by some "C" compilers in a non-conforming mode, but
>> they are not written in standard C.
>>
>> If you want help with one of these programs, and want to get it
>> in this newsgroup, get the code to compile under, for example,
>> gcc -std=c99 -pedantic-errors or gcc -std=c11 -pedantic-errors.
>> Until that is done people are quite right to tell you to look
>> for help elsewhere.
>
>
> I tried those options on these programs, which all failed:
>
> - Tiny C source code (0.9.27)
>
> - Some modules of Lua 5.4 interpreter
>
> - Pico C (C interpreter)
>
> - piet.c (interpreter)
>
> However, who are YOU to tell ME what options to use when compiling my C
> code?
>
> One thing I've learned here is that /I/ get to stipulate how my programs
> are compiled. Do you routinely get inside the makefiles that you come
> across and add your own options?
>
You see I don't get to stipulate that.

We have a deployment system so that a programmer can quickly make a
change to a program, get the changes signed off, then push it through
the pipeline to create a release for the customer.
Now I suppose I could say "My programs are special. They need all sorts
of extra flags and settings." And if I insisted hard enough maybe they
would have to agree. But it would make everything that bit more
difficult. And it's far easier to write all the programs so that they
compile with standard settings.

--
Check out Basic Algorithms and my other books:
https://www.lulu.com/spotlight/bgy1mm

Re: bart cc32n.c

<86mssnbadi.fsf@linuxsc.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33421&group=comp.lang.c#33421

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17687@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Mon, 29 Jan 2024 22:31:21 -0800
Organization: A noiseless patient Spider
Lines: 45
Message-ID: <86mssnbadi.fsf@linuxsc.com>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me> <up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me> <up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me> <up52g3$3qru0$1@dont-email.me> <86v87bbqke.fsf@linuxsc.com> <up9k5m$mkt1$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="e3f3945cb7164e1654b6d005c9df0f57";
logging-data="941684"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19T0ZU4tGFs95m4idAe7yIGLSQerkXwcTk="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:ZRPxC0zFn1/lR7HAA9FnbqPUkbU=
sha1:RFD9ro4pv3HcNwa7NKMwzWMO4Ss=
 by: Tim Rentsch - Tue, 30 Jan 2024 06:31 UTC

bart <bc@freeuk.com> writes:

> On 30/01/2024 00:41, Tim Rentsch wrote:
>
>> Paul Edwards <mutazilah@gmail.com> writes:
>>
>> [..is the code in cc32n.c topical?..]
>>
>>> I have a different opinion about whether a
>>> C compiler written in C is on-topic in a C
>>> support forum.
>>
>> Any program written in C, whether or not it's a compiler, is
>> topical in comp.lang.c.
>>
>> Unfortunately neither cc32n.c nor cc64.c is written in C. Rather
>> they are written in a language that resembles C, and may even be
>> compilable by some "C" compilers in a non-conforming mode, but
>> they are not written in standard C.
>>
>> If you want help with one of these programs, and want to get it
>> in this newsgroup, get the code to compile under, for example,
>> gcc -std=c99 -pedantic-errors or gcc -std=c11 -pedantic-errors.
>> Until that is done people are quite right to tell you to look
>> for help elsewhere.
>
> I tried those options on these programs, which all failed:
> [...]
>
> However, who are YOU to tell ME what options to use when compiling
> my C code?

I'm not telling anyone how to compile their programs. All I'm
doing is giving a way of checking whether a program is C code or
is written in a language that may look like C but isn't. Knowing
how to do that is something I could have benefited from - many
years ago I wrote some code that I thought was being written in
C, but later I discovered that it wasn't. I started programming
in C long before there was a C standard, and didn't realize the
degree to which different compilers had different ideas of what
"C" was. As of this year we are celebrating the 35th anniversary
of the original C standard, and the 25th anniversary of C99, so I
think it's reasonable to expect that people participating in the
newsgroup here at least know how to tell if some code they are
working on is written in C or it isn't.

Re: bart cc32n.c

<upabr8$tkhm$2@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33426&group=comp.lang.c#33426

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: david.brown@hesbynett.no (David Brown)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Tue, 30 Jan 2024 09:26:16 +0100
Organization: A noiseless patient Spider
Lines: 28
Message-ID: <upabr8$tkhm$2@dont-email.me>
References: <up00qe$2pg54$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me>
<up52g3$3qru0$1@dont-email.me> <20240129171130.110@kylheku.com>
<up9jb1$m0i7$2@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 30 Jan 2024 08:26:16 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="320c50a7312db09d065981adb5070632";
logging-data="971318"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/6CQCdSTSSm8G2x7ilIohumbWQgAOpwyQ="
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101
Thunderbird/102.11.0
Cancel-Lock: sha1:Yl1uWTq523Zak0aJgXxq9obdaKE=
In-Reply-To: <up9jb1$m0i7$2@news.xmission.com>
Content-Language: en-GB
 by: David Brown - Tue, 30 Jan 2024 08:26 UTC

On 30/01/2024 02:28, Kenny McCormack wrote:
> In article <20240129171130.110@kylheku.com>,
> Kaz Kylheku <433-929-6894@kylheku.com> wrote:
>> On 2024-01-28, Paul Edwards <mutazilah@gmail.com> wrote:
>>> I have a different opinion about whether a
>>> C compiler written in C is on-topic in a C
>>> support forum.
>>
>> Say, would you be okay if all the traffic from the GCC mailing lists and
>> the Clang discourse forum were copies to comp.lang.c?
>
> Davy (and others, both presently, and going back through the years) have
> made it abundantly clear that "stuff I like" is on-topic, and stuff I don't
> isn't.
>
> Very subjective, that.
>

I am assuming, perhaps incorrectly, that you are referring to me. My
name is "David". Not "Davy", "Dave", or any other abbreviation. You
are free to disagree with any of my opinions, or the way I express them,
but please at least get my name right - it's hardly a difficult task.

If you want to share your thoughts about topicality, that's great.
Rational arguments and justification would be preferable, but purely
personal preferences are fine too. But if you just want to stir up
annoyance, please don't.

Re: bart cc32n.c

<upammh$vegh$1@dont-email.me>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33432&group=comp.lang.c#33432

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: bc@freeuk.com (bart)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Tue, 30 Jan 2024 11:31:29 +0000
Organization: A noiseless patient Spider
Lines: 91
Message-ID: <upammh$vegh$1@dont-email.me>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me>
<up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me>
<up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me>
<up52g3$3qru0$1@dont-email.me> <86v87bbqke.fsf@linuxsc.com>
<up9k5m$mkt1$1@dont-email.me> <86mssnbadi.fsf@linuxsc.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Tue, 30 Jan 2024 11:31:29 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="1d628cc0776738c82c53ff623f6818a6";
logging-data="1030673"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/btLCGsDpp0DeZmTeogrxYtC+zQ8vq1xo="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:x1HT7zhwdflJVttsVb+rV53Lofw=
Content-Language: en-GB
In-Reply-To: <86mssnbadi.fsf@linuxsc.com>
 by: bart - Tue, 30 Jan 2024 11:31 UTC

On 30/01/2024 06:31, Tim Rentsch wrote:
> bart <bc@freeuk.com> writes:
>
>> On 30/01/2024 00:41, Tim Rentsch wrote:
>>
>>> Paul Edwards <mutazilah@gmail.com> writes:
>>>
>>> [..is the code in cc32n.c topical?..]
>>>
>>>> I have a different opinion about whether a
>>>> C compiler written in C is on-topic in a C
>>>> support forum.
>>>
>>> Any program written in C, whether or not it's a compiler, is
>>> topical in comp.lang.c.
>>>
>>> Unfortunately neither cc32n.c nor cc64.c is written in C. Rather
>>> they are written in a language that resembles C, and may even be
>>> compilable by some "C" compilers in a non-conforming mode, but
>>> they are not written in standard C.
>>>
>>> If you want help with one of these programs, and want to get it
>>> in this newsgroup, get the code to compile under, for example,
>>> gcc -std=c99 -pedantic-errors or gcc -std=c11 -pedantic-errors.
>>> Until that is done people are quite right to tell you to look
>>> for help elsewhere.
>>
>> I tried those options on these programs, which all failed:
>> [...]
>>
>> However, who are YOU to tell ME what options to use when compiling
>> my C code?
>
> I'm not telling anyone how to compile their programs. All I'm
> doing is giving a way of checking whether a program is C code or
> is written in a language that may look like C but isn't. Knowing
> how to do that is something I could have benefited from - many
> years ago I wrote some code that I thought was being written in
> C, but later I discovered that it wasn't. I started programming
> in C long before there was a C standard, and didn't realize the
> degree to which different compilers had different ideas of what
> "C" was. As of this year we are celebrating the 35th anniversary
> of the original C standard, and the 25th anniversary of C99, so I
> think it's reasonable to expect that people participating in the
> newsgroup here at least know how to tell if some code they are
> working on is written in C or it isn't.

This program was machine generated. The way that is done now is a little
different (for example it doesn't use standard C headers).

If I apply -std=c11 -pedantic-errors, it fails on only 3 kinds of error:

* String literals longer than 4095 characters

* Initialising a void* value with the address of function

* Casting an object pointer to a function pointer

I consider the first genuinely pedantic (I've only seen one compiler
with an actual limit for string literals, that was a 16K limit on MSVC,
a decade ago).

Those others are complaining about converting one kind of 64-bit pointer
to another kind of 64-bit pointer. A conversion which, weirdly, would be
considered fine if it want through an intermediate 64-bit integer type.

The options I stipulate for compiling with gcc on Windows are:

-m64 when not already the default (a 64-bit pointer size
is hard-coded)

-Wbuiltin-declaration-mismatch

This is requested within the source via a #pragma

On Linux (where a slightly different C file is needed as some
OS-dependent routines are differently), they are:

-m64

-fno-builtin

-lm -ldl

Where the C compiler is invoked by the transpiler, the necessary options
(plus -O3 if requested to be optimised) are applied automatically. The
process of using intermediate C can be transparent.

Re: bart cc32n.c

<20240130111209.487@kylheku.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33478&group=comp.lang.c#33478

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: 433-929-6894@kylheku.com (Kaz Kylheku)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Tue, 30 Jan 2024 20:33:50 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 21
Message-ID: <20240130111209.487@kylheku.com>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me>
<up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me>
<up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me>
<up52g3$3qru0$1@dont-email.me> <86v87bbqke.fsf@linuxsc.com>
<up9k5m$mkt1$1@dont-email.me> <86mssnbadi.fsf@linuxsc.com>
<upammh$vegh$1@dont-email.me>
Injection-Date: Tue, 30 Jan 2024 20:33:50 -0000 (UTC)
Injection-Info: dont-email.me; posting-host="aa3290a72f6c22d61c05503829253c16";
logging-data="1208720"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+EfGj38UYhR6hOyu522qcSM+R37MMG3mc="
User-Agent: slrn/pre1.0.4-9 (Linux)
Cancel-Lock: sha1:53zF5r5MkRo7/jMUPFEfKmeKPEI=
 by: Kaz Kylheku - Tue, 30 Jan 2024 20:33 UTC

On 2024-01-30, bart <bc@freeuk.com> wrote:
> Those others are complaining about converting one kind of 64-bit pointer
> to another kind of 64-bit pointer. A conversion which, weirdly, would be
> considered fine if it want through an intermediate 64-bit integer type.

All these conversions are fine in that implementation.

Someone using the pedantic warning wants to be informed about some
exotic portability issues; would the code be other than fine on certain
implementations.

In an implementation in which you cannot convert between object and
function pointers (or not in both ways), the detour through integers
also won't be fine!

See?

--
TXR Programming Language: http://nongnu.org/txr
Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal
Mastodon: @Kazinator@mstdn.ca

Re: bart cc32n.c

<86a5omat4q.fsf@linuxsc.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33507&group=comp.lang.c#33507

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17687@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Tue, 30 Jan 2024 22:56:05 -0800
Organization: A noiseless patient Spider
Lines: 56
Message-ID: <86a5omat4q.fsf@linuxsc.com>
References: <up00qe$2pg54$1@dont-email.me> <up02vm$2pqh4$1@dont-email.me> <up0377$2prul$1@dont-email.me> <up0mt0$2ugoi$1@dont-email.me> <up306o$3d279$1@dont-email.me> <up3evn$3fhg6$1@dont-email.me> <up52g3$3qru0$1@dont-email.me> <86v87bbqke.fsf@linuxsc.com> <up9k5m$mkt1$1@dont-email.me> <86mssnbadi.fsf@linuxsc.com> <upammh$vegh$1@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="fb4244b8d2c04d3d864a981f3fa61ba0";
logging-data="1501461"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+AVR+JClRBi485yPrnwllcut2NM+WYLio="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:Qbis58m284gcF2DK4QdhnaAA4Lw=
sha1:+BdkcNkJWrTeE8JaXL19oM/L4Ys=
 by: Tim Rentsch - Wed, 31 Jan 2024 06:56 UTC

bart <bc@freeuk.com> writes:

> On 30/01/2024 06:31, Tim Rentsch wrote:

[...]

>> I'm not telling anyone how to compile their programs. All I'm
>> doing is giving a way of checking whether a program is C code or
>> is written in a language that may look like C but isn't. Knowing
>> how to do that is something I could have benefited from - many
>> years ago I wrote some code that I thought was being written in
>> C, but later I discovered that it wasn't. I started programming
>> in C long before there was a C standard, and didn't realize the
>> degree to which different compilers had different ideas of what
>> "C" was. As of this year we are celebrating the 35th anniversary
>> of the original C standard, and the 25th anniversary of C99, so I
>> think it's reasonable to expect that people participating in the
>> newsgroup here at least know how to tell if some code they are
>> working on is written in C or it isn't.
>
> This program was machine generated. The way that is done now is a
> little different (for example it doesn't use standard C headers).
>
> If I apply -std=c11 -pedantic-errors, it fails on only 3 kinds of
> error:
>
> * String literals longer than 4095 characters
>
> * Initialising a void* value with the address of function
>
> * Casting an object pointer to a function pointer

If the .c file is program generated, it should be easy to fix.
So fix it.

(1) Presumably the generator knows which pointers are function
pointers and which are not. Use a generic function type for
storing function pointers rather than trying to force everything
through void*.

(2) Rather than use long string literals, store and initialize
the variables involved (it looks like there are only two) as
character arrays. It looks ugly but hey it's program generated
code anyway. I tried writing a simple convertor using awk and it
took maybe 10 or 15 minutes.

Speaking of program generated source, C code that is program
generated is definitely a second class citizen as far as the
newsgroup is concerned. It's like saying a .o file is written in
assembly. It isn't. Generated C source may clear the hurdle of
being compilable but they can't usefully be worked on in that
form and are generally incomprehensible to humans. It's fair
game to ask about how to make generated source be legal C, but
describing programs like this as "written in C" is hokum. Such
programs are useless as C code in any practical sense of the term
and thus are not suitable for discussion in comp.lang.c.

Re: bart cc32n.c

<upd24d$nrc3$1@news.xmission.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33513&group=comp.lang.c#33513

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!xmission!nnrp.xmission!.POSTED.shell.xmission.com!not-for-mail
From: gazelle@shell.xmission.com (Kenny McCormack)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Wed, 31 Jan 2024 08:58:53 -0000 (UTC)
Organization: The official candy of the new Millennium
Message-ID: <upd24d$nrc3$1@news.xmission.com>
References: <up00qe$2pg54$1@dont-email.me> <86mssnbadi.fsf@linuxsc.com> <upammh$vegh$1@dont-email.me> <86a5omat4q.fsf@linuxsc.com>
Injection-Date: Wed, 31 Jan 2024 08:58:53 -0000 (UTC)
Injection-Info: news.xmission.com; posting-host="shell.xmission.com:166.70.8.4";
logging-data="781699"; mail-complaints-to="abuse@xmission.com"
X-Newsreader: trn 4.0-test77 (Sep 1, 2010)
Originator: gazelle@shell.xmission.com (Kenny McCormack)
 by: Kenny McCormack - Wed, 31 Jan 2024 08:58 UTC

In article <86a5omat4q.fsf@linuxsc.com>,
Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
....
>Speaking of program generated source, C code that is program
>generated is definitely a second class citizen as far as the
>newsgroup is concerned. It's like saying a .o file is written in
>assembly. It isn't. Generated C source may clear the hurdle of
>being compilable but they can't usefully be worked on in that
>form and are generally incomprehensible to humans. It's fair
>game to ask about how to make generated source be legal C, but
>describing programs like this as "written in C" is hokum. Such
>programs are useless as C code in any practical sense of the term
>and thus are not suitable for discussion in comp.lang.c.

Keep in mind that, as I've shown many times over the years, nothing is
actually on topic in CLC.

--
Genesis 2:7 And the LORD God formed man of the dust of the ground, and
breathed into his nostrils the breath of life; and man became a living soul.

Re: bart cc32n.c

<86fryc9uvk.fsf@linuxsc.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=33656&group=comp.lang.c#33656

  copy link   Newsgroups: comp.lang.c
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: tr.17687@z991.linuxsc.com (Tim Rentsch)
Newsgroups: comp.lang.c
Subject: Re: bart cc32n.c
Date: Thu, 01 Feb 2024 05:28:15 -0800
Organization: A noiseless patient Spider
Lines: 23
Message-ID: <86fryc9uvk.fsf@linuxsc.com>
References: <up00qe$2pg54$1@dont-email.me> <86mssnbadi.fsf@linuxsc.com> <upammh$vegh$1@dont-email.me> <86a5omat4q.fsf@linuxsc.com> <upd24d$nrc3$1@news.xmission.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: dont-email.me; posting-host="e0e985b0c186ff2246e59878011e515e";
logging-data="2198413"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19Th8Sys2dDn2RLMEoKfXc4hDq8velNjAs="
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.4 (gnu/linux)
Cancel-Lock: sha1:2JeqRPfMzNQiO8jqfUaebkpOZws=
sha1:rA8j/Eede9fqTERpIvrIJ95BxuY=
 by: Tim Rentsch - Thu, 1 Feb 2024 13:28 UTC

gazelle@shell.xmission.com (Kenny McCormack) writes:

> In article <86a5omat4q.fsf@linuxsc.com>,
> Tim Rentsch <tr.17687@z991.linuxsc.com> wrote:
> ...
>
>> Speaking of program generated source, C code that is program
>> generated is definitely a second class citizen as far as the
>> newsgroup is concerned. It's like saying a .o file is written in
>> assembly. It isn't. Generated C source may clear the hurdle of
>> being compilable but they can't usefully be worked on in that
>> form and are generally incomprehensible to humans. It's fair
>> game to ask about how to make generated source be legal C, but
>> describing programs like this as "written in C" is hokum. Such
>> programs are useless as C code in any practical sense of the term
>> and thus are not suitable for discussion in comp.lang.c.
>
> Keep in mind that, as I've shown many times over the years, nothing is
> actually on topic in CLC.

What you have most often shown is that the group would benefit from
you departing the group and never returning, and lose nothing in
return. Also that you take delight in being an asshole.

Pages:123
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor