Deutsch English Français Italiano |
<v5gfm5$21ekk$3@dont-email.me> View for Bookmarking (what is this?) Look up another Usenet article |
Path: ...!npeer.as286.net!npeer-ng0.as286.net!3.eu.feeder.erje.net!feeder.erje.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: David Brown <david.brown@hesbynett.no> Newsgroups: comp.lang.c Subject: Re: Baby X is bor nagain Date: Wed, 26 Jun 2024 09:23:49 +0200 Organization: A noiseless patient Spider Lines: 24 Message-ID: <v5gfm5$21ekk$3@dont-email.me> References: <v494f9$von8$1@dont-email.me> <v4p37r$k32n$1@dont-email.me> <v4pei3$m5th$2@dont-email.me> <v4plsk$nn9o$2@dont-email.me> <v4pnq6$o4fs$1@dont-email.me> <v4q245$si2n$1@dont-email.me> <v4q2rl$sqk3$1@dont-email.me> <v52308$2nli8$3@dont-email.me> <v53i4s$33k73$2@dont-email.me> <v53lf7$34huc$1@dont-email.me> <v53vh6$368vf$1@dont-email.me> <v54se1$3bqsk$1@dont-email.me> <20240624160941.0000646a@yahoo.com> <v5bu5r$va3a$1@dont-email.me> <v5c275$vq9k$1@dont-email.me> <v5c6bf$10sr7$1@dont-email.me> <v5c9jk$1159j$1@dont-email.me> <v5cnm9$14dri$1@dont-email.me> <v5duid$1fid4$1@dont-email.me> <v5e92f$1gs9a$1@dont-email.me> <667af5ce$0$2873002$882e4bbb@reader.netnews.com> <874j9gu6fu.fsf@nosuchdomain.example.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Wed, 26 Jun 2024 09:23:49 +0200 (CEST) Injection-Info: dont-email.me; posting-host="cfb67e3f65c64926ce6ab82326618477"; logging-data="2144916"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IS4ZOuJnhE5YDNZ+g64dtCWcQvqoTUuk=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Cancel-Lock: sha1:1jO6oykBNica+Uj5bWKSueHi3xY= In-Reply-To: <874j9gu6fu.fsf@nosuchdomain.example.com> Content-Language: en-GB Bytes: 2667 On 25/06/2024 22:13, Keith Thompson wrote: > DFS <nospam@dfs.com> writes: > [...] >> Can you use tcc to generate assembly from a .c source file? >> >> similar to: >> >> $ gcc -S sourcefile.c > > No, tcc has no such option. > > I was able to get an assembly listing by running `tcc -c sourcefile.c` > followed by `objdump -d sourcefile.o`. > <https://godbolt.org> has tcc on its list of C compilers, and it shows the generated assembly. I don't know how it does this - perhaps using this same method. If people are interested in looking at the code generated by tcc (or vast numbers of other compilers, versions and targets), then godbolt is usually the easiest way to get it. And if anyone wants to know how they get the nice assembly out of the compilers, the source code for godbolt is also freely available.