Hi Bart (or anyone else interested)
(and hopefully this doesn't start a 3 month
long thread about ... what?)
You posted a flavor of cc64.c called cc32n.c,
which is available from http://pdos.org/cc32n.c
My understanding is that this can be compiled
with 32-bit gcc and produce a 32-bit executable
that produces 64-bit code.
The instructions say to compile with gcc or tcc.
I tried with gcc 3.2 from cygwin. I also tried
using visual studio 2005.
On 26/01/24 18:53, Janis Papanagnou wrote:
On 26.01.2024 11:16, Paul Edwards wrote:
Hi Bart (or anyone else interested)
(and hopefully this doesn't start a 3 month
long thread about ... what?)
Looks like a support question for a piece of proprietary code.
It's as far from proprietary as possible - it's
public domain. Without the hassle of having to
wait for the author to die and then waiting
another 70 years for him to properly decompose.
Why don't you contact the author or issue a bug report?
It's public domain. You're the owner as much as
anyone else. And if you think it's a bug, then
I've just given you a bug report.
Hi Bart (or anyone else interested)
(and hopefully this doesn't start a 3 month
long thread about ... what?)
On 26/01/2024 10:16, Paul Edwards wrote:
If you like, I can spend an hour or two working with this C code trying
to find the cause of the crashing, but when it's built with my 'tcc -m32'.
On 26/01/2024 10:57, Paul Edwards wrote:
On 26/01/24 18:53, Janis Papanagnou wrote:
On 26.01.2024 11:16, Paul Edwards wrote:
Hi Bart (or anyone else interested)
(and hopefully this doesn't start a 3 month
long thread about ... what?)
Looks like a support question for a piece of proprietary code.
It's as far from proprietary as possible - it's
public domain. Without the hassle of having to
wait for the author to die and then waiting
another 70 years for him to properly decompose.
Why don't you contact the author or issue a bug report?
It's public domain. You're the owner as much as
anyone else. And if you think it's a bug, then
I've just given you a bug report.
JP and I had an argument so he (I assume) has it in for me.
bart <bc@freeuk.com> writes:
On 26/01/2024 10:57, Paul Edwards wrote:
On 26/01/24 18:53, Janis Papanagnou wrote:
On 26.01.2024 11:16, Paul Edwards wrote:
Hi Bart (or anyone else interested)
(and hopefully this doesn't start a 3 month
long thread about ... what?)
Looks like a support question for a piece of proprietary code.
It's as far from proprietary as possible - it's
public domain. Without the hassle of having to
wait for the author to die and then waiting
another 70 years for him to properly decompose.
Why don't you contact the author or issue a bug report?
It's public domain. You're the owner as much as
anyone else. And if you think it's a bug, then
I've just given you a bug report.
JP and I had an argument so he (I assume) has it in for me.
Perhaps, yet it is still off-topic for comp.lang.c.
On 26/01/24 18:53, Janis Papanagnou wrote:
On 26.01.2024 11:16, Paul Edwards wrote:
Hi Bart (or anyone else interested)
(and hopefully this doesn't start a 3 month
long thread about ... what?)
Looks like a support question for a piece of proprietary code.
It's as far from proprietary as possible - it's
public domain. Without the hassle of having to
wait for the author to die and then waiting
another 70 years for him to properly decompose.
Why don't you contact the author or issue a bug report?
It's public domain. You're the owner as much as
anyone else. And if you think it's a bug, then
I've just given you a bug report.
I don't know if Bart has the project on some hosting site (github,
On 26/01/2024 11:57, Paul Edwards wrote:
Posting here would be appropriate if it is something strictly C related
- perhaps a question about the implementation of somewhat unusual code constructs where you can't figure out the correct rules according to the standards.
So think - if this were about gcc rather than bcc, would you post it
here? If not, then don't post it here.
And no, none of us are "owners" of the software in any sense of that
word. We did not buy it or receive it in other ways, we did not create
it, we are not responsible for it or its uses, we cannot sell it or
otherwise transfer ownership of it. Bart is the original owner - there
are no other owners.
On 26/01/2024 11:04, bart wrote:
On 26/01/2024 10:16, Paul Edwards wrote:
If you like, I can spend an hour or two working with this C code
trying to find the cause of the crashing, but when it's built with my
'tcc -m32'.
It turned out there wasn't much of a problem: my hello.c used __DATE__
and __TIME__, which it didn't like, so I just took those out. (If your
stuff uses them, I will need to look again.)
Otherwise most programs work using -S -E -c options.
So, I take it the main problem is the 'exceeding word32 value' error?
That is due to this code around line 31865 in cc32n.c:
if (!((((i64)-2147483648 <= value) && (value <= (i64)((u64)4294967295u))))) {
...
ax_lib_gerror((byte*)"1:exceeding word32 value");
};
On 26/01/2024 16:33, David Brown wrote:
On 26/01/2024 11:57, Paul Edwards wrote:
Posting here would be appropriate if it is something strictly C
related - perhaps a question about the implementation of somewhat
unusual code constructs where you can't figure out the correct rules
according to the standards.
This is extraordinary.
For the past month the discussion here has been about everything under
the sun, except actual C.
For me it was refresing in this thread to deal with some actual,
concrete, real-life C code, and some real bugs (here, possibly within
gcc 3.2).
But there have so far been 4 people posting in this thread who have
nothing to say on the topic on hand, other than complain about
topicality (I'm not sure what KK's post was about, it looked like an
insult).
So think - if this were about gcc rather than bcc, would you post it
here? If not, then don't post it here.
As noted above, it might well turn out to be a gcc bug in an old version
of it.
And no, none of us are "owners" of the software in any sense of that
word. We did not buy it or receive it in other ways, we did not
create it, we are not responsible for it or its uses, we cannot sell
it or otherwise transfer ownership of it. Bart is the original owner
- there are no other owners.
This was a program of transpiled C which I put into the public domain. I don't have copies, and Github was only used as a one-off distribution
method. The product is not supported.
On 26/01/24 18:53, Janis Papanagnou wrote:
On 26.01.2024 11:16, Paul Edwards wrote:
Hi Bart (or anyone else interested)
(and hopefully this doesn't start a 3 month
long thread about ... what?)
Looks like a support question for a piece of proprietary code.
It's as far from proprietary as possible - it's
public domain. [...]
Why don't you contact the author or issue a bug report?
It's public domain. You're the owner as much as
anyone else. And if you think it's a bug, then
I've just given you a bug report.
For the past month the discussion here has been about everything under
the sun, except actual C.
For me it was refresing in this thread to deal with some actual,
concrete, real-life C code, and some real bugs (here, possibly within
gcc 3.2).
On 27/01/2024 14:24, Paul Edwards wrote:
If you can get this down to a C question, this would be a perfectly good place to come. If you are having trouble building software, posting a
heap of meaningless build errors is not helpful.
People can help here with C questions. We can't, generally, help with
build issues with random bits of software.
On 27/01/24 00:33, David Brown wrote:
On 26/01/2024 11:57, Paul Edwards wrote:
It's public domain. You're the owner as much as
anyone else. And if you think it's a bug, then
I've just given you a bug report.
It is public domain, but it is software written solely by Bart, and used
Doesn't make any difference who wrote it.
(AFAIK) only by you and Bart,
It's not used by Bart at all that I am aware of.
and it's mainly of interest to you two.
No. It's of interest to me and some other people,
not Bart.
There's nowhere else for me to go.
The GNU people have no interest in supporting
gcc 3.2.3, in fact, they were "keen to delete"
the precious (to me) i370 target, displaying
the massive contempt for one of the most
important machines in the world.
And no, none of us are "owners" of the software in any sense of that
word.
Yes you are. As much as anyone else in the world is.
That's the exact definition of public domain.
we are not responsible for it or its uses,
Nobody is responsible, or everyone is equally
responsible, whichever way you look at it.
we cannot sell it
Yes you can.
or otherwise transfer ownership of it.
Nobody can. It's in the public domain. Again,
we're all in the same boat.
Bart is the original owner
He was indeed the original owner. But not any
more.
You are the equal of Bart.
In fact, if there is anyone who is top dog,
it's me. I maintain the source code and
build it and distribute it, and take an
interest in bugs. Bart doesn't do any of
those things, but he does graciously assist.
- there are no other owners.
There are no owners full stop.
Unless the
public is considered an owner, which it is.
Public domain code is not "unowned" waiting
for the first person do notice it to declare
ownership of. It is owned by the public.
On 27/01/2024 17:36, David Brown wrote:
On 27/01/2024 14:24, Paul Edwards wrote:
If you can get this down to a C question, this would be a perfectly good
place to come. If you are having trouble building software, posting a
heap of meaningless build errors is not helpful.
But in the end it did come down to a C question.
I'm curious however as to what you think this newsgroup is for.
The C group on Reddit, which is moderated, is far more diverse in what
is allowed.
On 2024-01-27, bart <bc@freeuk.com> wrote:
On 27/01/2024 17:36, David Brown wrote:
On 27/01/2024 14:24, Paul Edwards wrote:
If you can get this down to a C question, this would be a perfectly good >>> place to come. If you are having trouble building software, posting a
heap of meaningless build errors is not helpful.
But in the end it did come down to a C question.
I'm curious however as to what you think this newsgroup is for.
The C group on Reddit, which is moderated, is far more diverse in what
is allowed.
The difference is that here, people can only express their opinion
on what is allowed.
In Reddit, if you carry on like you do here,
Bart ... git ... think about it. 🙂
you will be, firstly,
downvoted to invisibility. Secondly, likely kicked out of the
subreddit.
In Reddit, there are times where you will be downvoted to the basement
while posting something relevant and factual, just because people can't handle it.
On 27/01/24 03:35, David Brown wrote:
On 26/01/2024 19:00, bart wrote:
For the past month the discussion here has been about everything under
the sun, except actual C.
A lot of it was off-topic, yes. But a lot of it was at least of
interest to a number of people here.
You are free to complain that people have been talking too much about
COBOL, C++, or whatever - and that would be a valid complaint, and
something that people in the group should respect.
More to the point - why didn't YOU complain about
people talking about COBOL, and telling them where
to find the appropriate COBOL groups, and the
philosophical underpinnings of why any mention of
COBOL matters belongs purely in a COBOL group.
And then repeat that with the C++ talk.
And then, when one of those people responds along
the lines of "what about that guy who has a public
domain C compiler written in C that you and I don't
use - he posted here!", you can respond with this:
Two wrongs, however, do not make a right.
Concentrate on the COBOL guys. You're more
likely to get them to stop posting about
COBOL than you are likely to get me to stop
posting about a C compiler written in C.
On 28/01/24 01:36, David Brown wrote:
It's public domain. You're the owner as much as
anyone else. And if you think it's a bug, then
I've just given you a bug report.
It is public domain, but it is software written solely by Bart, and
used
Doesn't make any difference who wrote it.
It makes a very big difference in regard to who can help you with it,
and who might be interested in its details.
Bart has point blank said he is not interested
in it and made an effort to delete every vestige
of it from his system.
So if he chimes in, it's just luck.
(AFAIK) only by you and Bart,
It's not used by Bart at all that I am aware of.
That just makes it even less appropriate to post it here.
I have a different opinion about whether a
C compiler written in C is on-topic in a C
support forum.
You're about as unlikely to change my mind
about that as vice-versa.
and it's mainly of interest to you two.
No. It's of interest to me and some other people,
not Bart.
Who else?
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).
And is this the appropriate place to talk to them about your
issues?
Any C forum is. I prefer newsgroups. I used to
use Fidonet C_ECHO when I didn't have internet
access. When I did have internet access I didn't
post here because I was dealing with other things.
I did occasionally post. But even though I didn't
post, this forum was always on my mind as a place
I would eventually call home.
If you were announcing the availability of a new C compiler, that could
be of interest to the group even if no one wanted to use it.
This is trying to get that announcement.
And indeed, as of an hour or so ago, Robert
(there's the first name for you to take
action on) sent in a fix for the 386 assembler
support code (that he wrote), which allowed
cc32n.c to compile using my flavor of gcc 3.2.3.
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.
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.
And no, none of us are "owners" of the software in any sense of that
word.
Yes you are. As much as anyone else in the world is.
That's the exact definition of public domain.
No, it is not. For someone who is so obsessed with "public domain", you
are remarkably ignorant about it.
Or maybe you are.
/No one/ owns the software released
into the public domain, at least in countries that recognise such the
concept of relinquishing ownership. (Not all countries accept that as a
legal concept.)
First of all, please explain to me the difference
between "no-one owns it" and "everyone owns it".
You seem to insist there is a difference.
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?
we are not responsible for it or its uses,
Nobody is responsible, or everyone is equally
responsible, whichever way you look at it.
These are hugely different ways of looking at it. If I were to say "I
think some people in your family are murderers", would you respond with
"No one in my family is a murderer", or "Everyone in my family is
equally murderous" ?
Both are technically correct answers. It is you
who insists that the latter is not technically
correct, so the burden is on you to demonstrate
that.
On 28/01/2024 09:15, Paul Edwards wrote:
On 28/01/24 01:36, David Brown wrote:
It's public domain. You're the owner as much as
anyone else. And if you think it's a bug, then
I've just given you a bug report.
It is public domain, but it is software written solely by Bart, and
used
Doesn't make any difference who wrote it.
It makes a very big difference in regard to who can help you with it,
and who might be interested in its details.
Bart has point blank said he is not interested
in it and made an effort to delete every vestige
of it from his system.
So if he chimes in, it's just luck.
(AFAIK) only by you and Bart,
It's not used by Bart at all that I am aware of.
That just makes it even less appropriate to post it here.
I have a different opinion about whether a
C compiler written in C is on-topic in a C
support forum.
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.
You're about as unlikely to change my mind
about that as vice-versa.
I'm hoping to help you help yourself.
On 28/01/2024 08:13, Paul Edwards wrote:
And then, when one of those people responds along
the lines of "what about that guy who has a public
domain C compiler written in C that you and I don't
use - he posted here!", you can respond with this:
My first post in this thread was in support of Janis' suggestion
that
you're more likely to get more helpful responses in an appropriate forum.
Two wrongs, however, do not make a right.
Concentrate on the COBOL guys. You're more
likely to get them to stop posting about
COBOL than you are likely to get me to stop
posting about a C compiler written in C.
The compiler in question is not, AFAIUI, written in C. C is merely an output format.
But any post about C is on topic.
Posts about the details of C tools,
or software that happens to be written in C, are not on topic.
Please confine your postings in comp.lang.c to topics and subjects
relevant to the C language. None of what you say in your posting
is topical in comp.lang.c. An obvious suggestion is the newsgroup comp.compilers instead.
On 28/01/2024 12:11, David Brown wrote:
On 28/01/2024 08:13, Paul Edwards wrote:
And then, when one of those people responds along
the lines of "what about that guy who has a public
domain C compiler written in C that you and I don't
use - he posted here!", you can respond with this:
My first post in this thread was in support of Janis' suggestion
Anything written by that poster is clearly motivated by animosity
towards me.
that you're more likely to get more helpful responses in an
appropriate forum.
Two wrongs, however, do not make a right.
Concentrate on the COBOL guys. You're more
likely to get them to stop posting about
COBOL than you are likely to get me to stop
posting about a C compiler written in C.
The compiler in question is not, AFAIUI, written in C. C is merely an
output format.
But any post about C is on topic.
What, just about the C language? That would be very restictive. But what would that entail: learning about C? Endless posts about whether
something is an operator or not?
Posts about the details of C tools, or software that happens to be
written in C, are not on topic.
What about some C code that has a bug in it? For example, the thread "Inconsistent..." from 30-Oct-2023.
You said elsewhere that posts about a new C compiler might be welcome.
Well I did that with "MCC Compiler" on 28-Sep-2023. This was the
response from a certain "Tim Rentsch":
On 28/01/2024 12:11, David Brown wrote:
On 28/01/2024 08:13, Paul Edwards wrote:
And then, when one of those people responds along
the lines of "what about that guy who has a public
domain C compiler written in C that you and I don't
use - he posted here!", you can respond with this:
My first post in this thread was in support of Janis' suggestion
Anything written by that poster is clearly motivated by animosity
towards me.
In article <up5l18$3uf12$1@dont-email.me>, bart <bc@freeuk.com> wrote:
On 28/01/2024 12:11, David Brown wrote:
On 28/01/2024 08:13, Paul Edwards wrote:
And then, when one of those people responds along
the lines of "what about that guy who has a public
domain C compiler written in C that you and I don't
use - he posted here!", you can respond with this:
My first post in this thread was in support of Janis' suggestion
Anything written by that poster is clearly motivated by animosity
towards me.
I have to admit that I don't agree with your stance on JP. Although I have tussled a bit in the past with him, I think that JP is basically a good person, but who is hampered, and sometimes ties himself in knots, by the language problem (English not being his first language).
No one, however, can be expected to guess about a problem on line10,000 of some C code found somewhere on the internet.
On 28/01/2024 13:05, David Brown wrote:
On 28/01/2024 09:15, Paul Edwards wrote:
On 28/01/24 01:36, David Brown wrote:
It's public domain. You're the owner as much as
anyone else. And if you think it's a bug, then
I've just given you a bug report.
It is public domain, but it is software written solely by Bart,
and used
Doesn't make any difference who wrote it.
It makes a very big difference in regard to who can help you with it,
and who might be interested in its details.
Bart has point blank said he is not interested
in it and made an effort to delete every vestige
of it from his system.
So if he chimes in, it's just luck.
(AFAIK) only by you and Bart,
It's not used by Bart at all that I am aware of.
That just makes it even less appropriate to post it here.
I have a different opinion about whether a
C compiler written in C is on-topic in a C
support forum.
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.)
Nevertheless, the software now only exists as a file of C source code.
I'm sure it can't be the first time that some software has been
transpiled or ported into C from another language, by programmatic means.
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.
It is just a program that showed compile errors and that didn't work as expected.
A month ago somebody on Reddit posted about a problem with their C
program, which worked on Linux, but didn't work on Windows.
It was a graphical game, about 7000 lines of code in all, in 30-odd
modules, and used the SDL2 library. It was crashing out in random places
soon after it got into the main event loop.
I downloaded the sources (no build system was provided; that helped) and managed to eventually find the problem. I primarily used my MCC compiler
for the purpose too (I was able to do a temporary mod to it to log
function entries to help narrow then the failure point).
The main issue turned out to be a line like this:
string String;
String = (string)malloc(sizeof(*String));
Originally the * was missing, so malloc allocated only 8 bytes instead
of the 16 bytes that were necessary.
But why did it work fine on Linux for months? Because on Linux, even an 8-byte allocation takes up 32 byte of heap. Plenty of of extra room for
the struct.
On Windows, an 8-byte allocation uses 16 bytes of heap. Take away the overhead necessary to track the size, and there are not enough spare
bytes to make it work. It will crash in unexpected places. (And yes I
did suggest trying to use a memory tracking tool.)
The point of relating this: you would ban people posting such appeals
for help in this forum. It's more important to discuss the ins and outs
of C++'s << operators; THAT is apparently more on topic.
You're about as unlikely to change my mind
about that as vice-versa.
I'm hoping to help you help yourself.
So patronising.
I don't necessarily agree with PE's aims, but admire
what he does. He already liaises with many other support groups and individuals. Until he posts in this group, apparently as a last resort,
and is firmly told to go away.
On 28/01/2024 14:41, Kenny McCormack wrote:
Unlike, say, Keith T. and Dave B, who are both
Please.
I enjoy debating with both these people. We don't need this sort of
thing in comp.lang.c.
On 28/01/2024 14:32, bart wrote:
On 28/01/2024 12:11, David Brown wrote:
My first post in this thread was in support of Janis' suggestion
Anything written by that poster is clearly motivated by animosity
towards me.
I can't really comment on motivation or other people's posts - I try to
take one post at a time.
On 28/01/2024 12:11, David Brown wrote:
On 28/01/2024 08:13, Paul Edwards wrote:
And then, when one of those people responds along
the lines of "what about that guy who has a public
domain C compiler written in C that you and I don't
use - he posted here!", you can respond with this:
My first post in this thread was in support of Janis' suggestion
Anything written by that poster is clearly motivated by animosity
towards me.
On 28/01/2024 15:02, bart wrote:
A month ago somebody on Reddit posted about a problem with their C
program, which worked on Linux, but didn't work on Windows.
There are lots of Reddit groups - this is not one of them.
It's possible that there would be advantages in widening the topicality
of this group. It's possible that it will fade away if it does not
become more like other forums. But that's another matter than what this group is /today/.
String = (string)malloc(sizeof(*String));
Originally the * was missing, so malloc allocated only 8 bytes instead
of the 16 bytes that were necessary.
Memory tracking tools, or something like gcc/clang's address sanitizer,
are helpful for this kind of thing, so that was a good suggestion.
Another is good static warnings - "gcc -Wall -Wextra" should catch this
one.
<https://clc-wiki.net/wiki/C_community:comp.lang.c:Introduction>
I don't necessarily agree with PE's aims, but admire what he does. He
already liaises with many other support groups and individuals. Until
he posts in this group, apparently as a last resort, and is firmly
told to go away.
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.
If you were new to C and needed help with any aspect, which one would
you go for?
On 28/01/2024 16:01, David Brown wrote:
On 28/01/2024 15:02, bart wrote:
A month ago somebody on Reddit posted about a problem with their C
program, which worked on Linux, but didn't work on Windows.
There are lots of Reddit groups - this is not one of them.
The one in question is called C_Programming (https://www.reddit.com/r/C_Programming/).
It's possible that there would be advantages in widening the
topicality of this group. It's possible that it will fade away if it
does not become more like other forums. But that's another matter
than what this group is /today/.
If you were new to C and needed help with any aspect, which one would
you go for? Which others are there? It's seems extremely churlish to me
that this group, populated mostly by old-timers, should draw such sharp
lines as to what should be allowed.
Until six months ago, it had been moribund for a couple of years.
Although it didn't stop Keith claiming the rare odd post being
off-topic, as though it would affect the signal-to-noise ratio.
It is partly due to people like me who stir things up, or who have
minority views, that brought some life back to it.
Why not open just open it up a bit more? Although the worst for mostly posting off-topic material right now is JP. But I see you're all very
chummy so I doubt he's going to get a ticking off; he's a Professional
you know.
String = (string)malloc(sizeof(*String));
Originally the * was missing, so malloc allocated only 8 bytes
instead of the 16 bytes that were necessary.
Memory tracking tools, or something like gcc/clang's address
sanitizer, are helpful for this kind of thing, so that was a good
suggestion. Another is good static warnings - "gcc -Wall -Wextra"
should catch this one.
It didn't help in this case. The example can be reduced to this:
typedef struct {int d,m,y,x;}* date;
date Date;
Date = (date)malloc(sizeof(Date));
The naming choices made it difficult to spot; Date is an instance of a pointer, not of a struct as it appears.
<https://clc-wiki.net/wiki/C_community:comp.lang.c:Introduction>
Wow, they take it pretty seriously. So, meta-discussion about the
language, so long as it doesn't involve any practical aspects of using C?
The Reddit topicality rule is one short paragraph.
I don't necessarily agree with PE's aims, but admire what he does. He
already liaises with many other support groups and individuals. Until
he posts in this group, apparently as a last resort, and is firmly
told to go away.
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.
A toy program according to JP!
I have to admit that I don't agree with your stance on JP. Although I have tussled a bit in the past with him, I think that JP is basically a good person, [...]
On 2024-01-28, bart <bc@freeuk.com> wrote:
On 28/01/2024 12:11, David Brown wrote:
On 28/01/2024 08:13, Paul Edwards wrote:
And then, when one of those people responds along
the lines of "what about that guy who has a public
domain C compiler written in C that you and I don't
use - he posted here!", you can respond with this:
My first post in this thread was in support of Janis' suggestion
Anything written by that poster is clearly motivated by animosity
towards me.
But, in spite of your by now long history of posting to this newsgroup, pretty much none of it has been topical.
You're like, let's see, a guitar enthusiast posting to a violin
newsgroup.
Man, violins are so unfriendly, how can anyone in their right mind waste their time on them. Frets, people! Have you heard of these things? You
just hold down a string, and get the right pitch instantly. And look at
the sustain; the string goes on ringing clearly, no bow required.
Pizzicato playing is a joke by comparison: it sounds like chickens
clucking.
I'm totally on topic: I'm telling you how violins suck compared
to guitars! And ... I've built a bowed instrument closely resembling a violin. It has three strings tuned a minor sixth apart, and features
frets. You wear it around your neck on a strap, and use a bow.
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.
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?
I'm not aware of anywhere that can beat 24 hours.
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.
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).
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.
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.
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.
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.
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.
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.
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).
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.
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.
I have a different opinion about whether a
C compiler written in C is on-topic in a C
support forum.
I have a different opinion about whether a
C compiler written in C is on-topic in a C
support forum.
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?
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.
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?
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.
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.
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.
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
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.
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.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 546 |
Nodes: | 16 (2 / 14) |
Uptime: | 55:44:09 |
Calls: | 10,397 |
Calls today: | 5 |
Files: | 14,067 |
Messages: | 6,417,427 |
Posted today: | 1 |