Path: csiph.com!eternal-september.org!reader02.eternal-september.org!.POSTED!not-for-mail From: Keith Thompson Newsgroups: comp.lang.c Subject: Re: Why does C allow structs to have a tag? Date: Sat, 31 Jul 2021 15:48:53 -0700 Organization: None to speak of Lines: 30 Message-ID: <877dh6aylm.fsf@nosuchdomain.example.com> References: <1mgMI.17475$6j.16299@fx04.iad> <87zgu6f367.fsf@nosuchdomain.example.com> <87v94tg8sw.fsf@nosuchdomain.example.com> <87mtq5f92k.fsf@nosuchdomain.example.com> <20210730075445.167@kylheku.com> <878s1neknd.fsf@nosuchdomain.example.com> <875ywrctxg.fsf@nosuchdomain.example.com> <87wnp7bchb.fsf@nosuchdomain.example.com> <87bl6iazh8.fsf@nosuchdomain.example.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="45c31737cfd44125daaf4223bdb9fd61"; logging-data="22209"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18tPZM/8onSsGL+6ajVTKUl" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) Cancel-Lock: sha1:pPKL7fnaGIPg9tcZbyxImS7G0IA= sha1:c9ZGJtFR3EFRIWHUNY7g1+ag+10= Xref: csiph.com comp.lang.c:162176 Keith Thompson writes: > [big snip] > > I've just installed TDM-GCC on my Windows 10 laptop. [big snip] I've just done a similar experiment with tcc, installed on Windows 10 from http://download.savannah.gnu.org/releases/tinycc/tcc-0.9.27-win64-bin.zip There's a win32 installer as well. I didn't try it. Using the same program from my previous post and compiling with default options ("tcc c.c"), both "%zu" and "%Lg" work correctly. The lcc-generated executable is a "PE32+ executable (console) x86-64 (stripped to external PDB), for MS Windows". Running Cygwin "ldd" on the executable shows: ntdll.dll => /cygdrive/c/WINDOWS/SYSTEM32/ntdll.dll (0x7ff992ad0000) KERNEL32.DLL => /cygdrive/c/WINDOWS/System32/KERNEL32.DLL (0x7ff991fe0000) KERNELBASE.dll => /cygdrive/c/WINDOWS/System32/KERNELBASE.dll (0x7ff990210000) msvcrt.dll => /cygdrive/c/WINDOWS/System32/msvcrt.dll (0x7ff992100000) -- Keith Thompson (The_Other_Keith) Keith.S.Thompson+u@gmail.com Working, but not speaking, for Philips void Void(void) { Void(); } /* The recursive call of the void */