Path: csiph.com!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: BartC Newsgroups: comp.lang.c Subject: Re: Preprocessor Overheads Date: Tue, 7 Feb 2017 11:26:55 +0000 Organization: A noiseless patient Spider Lines: 27 Message-ID: References: <87o9ykjfhr.fsf@bsb.me.uk> <87a8a3jpeo.fsf@bsb.me.uk> <87r33fhxy6.fsf@bsb.me.uk> <540a9cpdgag09bas7fll08ianoja8sipcs@4ax.com> <791b2540-1353-4ffa-95d5-98e3eaf66b65@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Tue, 7 Feb 2017 11:25:10 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="80dff8dbed11b5e5226231c8dfc6b880"; logging-data="30382"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+58mX5ZQgv2FgVFvtrVibF" User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 In-Reply-To: Cancel-Lock: sha1:s6oJucIyuD6DTGRx8NAEGAXXyQw= Xref: csiph.com comp.lang.c:103349 On 07/02/2017 08:57, David Brown wrote: > On 06/02/17 17:10, supercat@casperkitty.com wrote: > If you were writing a new compiler, it would be worth considering > writing it "the Windows way" to be efficient at running on Windows - and > it could also be efficient at running on Linux. But it takes a lot more > development work - that's why people prefer making such systems "the > Unix way" and accepting that they will be less efficient on Windows. > When the llvm project was started, the developers concentrated on the > new part - the middle of the toolchain. They used an existing C and C++ > front-end (from gcc), and they used an existing assembler and linker > (from binutils). This was much easier, safer, more modular, more > scalable and more flexible than trying to write a Windows-style "do > everything" tool. Go: "We considered using LLVM for gc but we felt it was too large and slow to meet our performance goals." [https://golang.org/doc/faq] No mention of OS. (I looked at llvm myself years ago, and even then, there were 44 different /sets/ of documentation to peruse if you wanted to try and understand it. And I believe it required you to use C++. An unattractive option overall.) -- Bartc