[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Tinycc-devel Digest, Vol 192, Issue 12
From: |
KHMan |
Subject: |
Re: [Tinycc-devel] Tinycc-devel Digest, Vol 192, Issue 12 |
Date: |
Tue, 21 May 2019 12:00:28 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 |
On 5/21/2019 4:08 AM, Ben Hutchinson wrote:
Date: Sun, 19 May 2019 01:11:26 +0200
From: Daniel Gl?ckner <address@hidden
<mailto:address@hidden>>
If you don't need __chkstk, you are not compiling for Windows
and should
not use a TinyCC that is targetting Windows. TinyCC targetting
Linux does
not emit calls to __chkstk.
[snip snip snip]
If the official TinyCC developers were to make this one simple
change, TinyCC would no longer be a no-go for me, and in fact
TinyCC would then become my primary means to write Windows software.
It's quite puzzling to see this sort of request.
I agree with Austin that if the feature is so important, then
consider patching it yourself. It is easier to compile tcc
yourself and tweak whatever you want versus gcc. Or maybe use gcc -O0?
If you plan to write Windows software in C, I think assembly
output doesn't really matter for most devs. For CPUs now cache
misses are like train wrecks that limits max perf. Even how your
executable is aligned when loaded may have big effects on
performance. I just trust the compiler to do its thing. Install
MinGW or MSYS2 and use gcc, apply whatever compiler options that
are appropriate.
For modern PCs, I guess most devs still doing heavy-duty assembly
are for math performance or multimedia performance. And x86_64
skills may be more important nowadays than x86 skills.
Even for embedded programming, there is usually zero need to think
in assembly. Use the appropriate syntax and intrinsics and one can
write C code quickly and productively without ever needing to
remember CPU instruction mnemonics.
IMHO, to productively write Windows software in C, just think in
C. I'm curious as to why you have this unusual need.
--
Cheers,
Kein-Hong Man (esq.)
Selangor, Malaysia
- Re: [Tinycc-devel] Tinycc-devel Digest, Vol 192, Issue 12, Ben Hutchinson, 2019/05/20
- Re: [Tinycc-devel] Tinycc-devel Digest, Vol 192, Issue 12, Austin English, 2019/05/20
- Re: [Tinycc-devel] Tinycc-devel Digest, Vol 192, Issue 12,
KHMan <=
- Re: [Tinycc-devel] How do I disable all runtime error checks, Daniel Glöckner, 2019/05/21
- Re: [Tinycc-devel] Tinycc-devel Digest, Vol 192, Issue 12, Giovanni Mascellani, 2019/05/21