On Wed, 12 Mar 2025 00:58:43 +0200, Michael S wrote:
BTW, I think that tcc is doing damage to itself by refusal to
support ucrt variant of Microsoft's C RTL.
Damaging their market share and hurting their revenues?
On Wed, 12 Mar 2025 00:43:51 -0000 (UTC)
Lawrence D'Oliveiro <[email protected]d> wrote:
On Wed, 12 Mar 2025 00:58:43 +0200, Michael S wrote:
BTW, I think that tcc is doing damage to itself by refusal to
support ucrt variant of Microsoft's C RTL.
Damaging their market share and hurting their revenues?
I don't know what exactly motivates people to continue to maintain tcc
after all fun things, like, for example, writing working compiler*, are
done years ago. But it seems that extending user base and increasing satisfaction of existing users is not totally unimportant for this
people.
--------
* - writing compiler is not my personal idea of fun, but I am pretty
sure that it was considered fun by original tcc developers
On 12/03/2025 08:53, Michael S wrote:
On Wed, 12 Mar 2025 00:43:51 -0000 (UTC)
Lawrence D'Oliveiro <[email protected]d> wrote:
On Wed, 12 Mar 2025 00:58:43 +0200, Michael S wrote:
BTW, I think that tcc is doing damage to itself by refusal to
support ucrt variant of Microsoft's C RTL.
Damaging their market share and hurting their revenues?
I don't know what exactly motivates people to continue to maintain
tcc after all fun things, like, for example, writing working
compiler*, are done years ago. But it seems that extending user
base and increasing satisfaction of existing users is not totally unimportant for this people.
Tcc is a more important product than you might think. It is a compact
program of 200-300KB that can turn C source code into binary.
On Wed, 12 Mar 2025 14:04:16 +0000
bart <[email protected]> wrote:
On 12/03/2025 08:53, Michael S wrote:
On Wed, 12 Mar 2025 00:43:51 -0000 (UTC)
Lawrence D'Oliveiro <[email protected]d> wrote:
On Wed, 12 Mar 2025 00:58:43 +0200, Michael S wrote:
BTW, I think that tcc is doing damage to itself by refusal to
support ucrt variant of Microsoft's C RTL.
Damaging their market share and hurting their revenues?
I don't know what exactly motivates people to continue to maintain
tcc after all fun things, like, for example, writing working
compiler*, are done years ago. But it seems that extending user
base and increasing satisfaction of existing users is not totally
unimportant for this people.
Tcc is a more important product than you might think. It is a compact
program of 200-300KB that can turn C source code into binary.
You post does not answer the question in hand, which is "What motivates current tcc maintainers to go on?"
Nor does it help us to decide whether support for UCRT-based C RTL is
would be worth their effort (my original suggestion) or pointless, as suggested by Lawrence D'Oliveiro.
I don't know what the significance of UCRT-based means. As such that
would't make me stop using it.
On 12/03/2025 14:32, Michael S wrote:
On Wed, 12 Mar 2025 14:04:16 +0000
bart <[email protected]> wrote:
On 12/03/2025 08:53, Michael S wrote:
On Wed, 12 Mar 2025 00:43:51 -0000 (UTC)
Lawrence D'Oliveiro <[email protected]d> wrote:
On Wed, 12 Mar 2025 00:58:43 +0200, Michael S wrote:
BTW, I think that tcc is doing damage to itself by refusal to
support ucrt variant of Microsoft's C RTL.
Damaging their market share and hurting their revenues?
I don't know what exactly motivates people to continue to maintain
tcc after all fun things, like, for example, writing working
compiler*, are done years ago. But it seems that extending user
base and increasing satisfaction of existing users is not totally
unimportant for this people.
Tcc is a more important product than you might think. It is a compact
program of 200-300KB that can turn C source code into binary.
You post does not answer the question in hand, which is "What motivates
current tcc maintainers to go on?"
I thought I did. It seems a reasonably well-known compiler with some >interesting use-cases where a big product may be unsuited.
On 12/03/2025 14:32, Michael S wrote:
On Wed, 12 Mar 2025 14:04:16 +0000
bart <[email protected]> wrote:
On 12/03/2025 08:53, Michael S wrote:
On Wed, 12 Mar 2025 00:43:51 -0000 (UTC)
Lawrence D'Oliveiro <[email protected]d> wrote:
On Wed, 12 Mar 2025 00:58:43 +0200, Michael S wrote:
BTW, I think that tcc is doing damage to itself by refusal to
support ucrt variant of Microsoft's C RTL.
Damaging their market share and hurting their revenues?
I don't know what exactly motivates people to continue to maintain
tcc after all fun things, like, for example, writing working
compiler*, are done years ago. But it seems that extending user
base and increasing satisfaction of existing users is not totally
unimportant for this people.
Tcc is a more important product than you might think. It is a
compact program of 200-300KB that can turn C source code into
binary.
You post does not answer the question in hand, which is "What
motivates current tcc maintainers to go on?"
I thought I did. It seems a reasonably well-known compiler with some interesting use-cases where a big product may be unsuited.
I'm sure there are enough users world-wide for it to be worth
maintaining, and people willing to do that.
There are also plenty of people interested in messing with compilers
or who want to contribute to such projects. Tcc's compiler comprises
some 36 .c and .h files; gcc is more like 85,000 files.
So Tcc would be simpler to work with, given 99.95% fewer files, and
to make a noticeable difference to!
On Wed, 12 Mar 2025 16:52:24 +0000
bart <[email protected]> wrote:
I don't know what the significance of UCRT-based means. As such that
would't make me stop using it.
UCRT would give them pretty good compliance with requirements of C99,
C11 and C17 standards. Not perfect, but a lot better that circa-2014 libraries that they are using today.
Also, I suppose that it will give better compatibility with MS tools. Personally for you, it likely means that GMP DLLs that I suggested
would work. And these DLLs are smaller, better tested and hopefully
compiled from newer sources than non-UCRT variant that you found.
On Wed, 12 Mar 2025 16:52:24 +0000
bart <[email protected]> wrote:
I don't know what the significance of UCRT-based means. As such that
would't make me stop using it.
UCRT would give them pretty good compliance with requirements of C99,
C11 and C17 standards. Not perfect, but a lot better that circa-2014 libraries that they are using today.
Another backend possibility is LLVM, but is vastly more complex, and
just as slow.
On Wed, 12 Mar 2025 14:04:16 +0000, bart wrote:
Another backend possibility is LLVM, but is vastly more complex, and
just as slow.
There are lighter-weight alternatives <https://c9x.me/compile/>.
* It only works on Linux
If you compare with my own backend, if built into a standalone program:
* The input is simpler stack-based code with no SSA requirements
The only downside is its poorer code (mine is somewhat better than
tcc's and seems to match QBE on the few benchmarks I tried).
On Thu, 13 Mar 2025 12:08:42 +0000, bart wrote:
* It only works on Linux
At least it’s not restricted to x86 code: it does ARM and RISC-V (both 64- bit) as well.
But it’s only a code generator,
and code generators shouldn’t be relying
on any advanced OS features like namespaces or event loops or like that;
it should be a piece of cake for somebody with your Windows development skills to port it ... shouldn’t it?
If you compare with my own backend, if built into a standalone program:
Does yours handle any other target architecture besides x86?
* The input is simpler stack-based code with no SSA requirements
How efficient is the generated code, by comparison?
The only downside is its poorer code (mine is somewhat better than
tcc's and seems to match QBE on the few benchmarks I tried).
Any fool^H^H^H^Hcompiler class undergraduate can output stack-based code.
And a lot of them do.
Actually the project is simple enough to build on Windows (and is considerably smaller if not using the makefile).
| Sysop: | Keyop |
|---|---|
| Location: | Huddersfield, West Yorkshire, UK |
| Users: | 715 |
| Nodes: | 16 (2 / 14) |
| Uptime: | 20:58:36 |
| Calls: | 12,104 |
| Calls today: | 4 |
| Files: | 15,004 |
| Messages: | 6,518,104 |