From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: Paul Rubin Newsgroups: comp.lang.ada Subject: Re: Why does Ada compile slower than Python? Date: Tue, 17 Oct 2017 23:38:51 -0700 Organization: A noiseless patient Spider Message-ID: <87mv4pvu2s.fsf@nightsong.com> References: Mime-Version: 1.0 Content-Type: text/plain Injection-Info: reader02.eternal-september.org; posting-host="4c1f23e9e65e9f175107a416eaec6528"; logging-data="31758"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+I1xuNKt0zxNeH54l+f5Vp" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) Cancel-Lock: sha1:kc92+2xY/DRORcCSxIrd8PId92U= sha1:bJZ1pbYAixPTtKNI+ajgfo5vrig= Xref: news.eternal-september.org comp.lang.ada:48499 Date: 2017-10-17T23:38:51-07:00 List-Id: olivermkellogg@gmail.com writes: > if you provide 100 files on a single gcc command line then gcc loads > and compiles each file separately as though you were providing 100 > commands with one file per command. Usually you'd use make -j which will do compilation in parallel if you have a multicore machine. I use that with C and C++ programs all the time and it's a big help. There are even some distributed make programs that will spin your compilation out across a whole cluster, but I do most of my stuff on a regular 4-core i7 box. I don't know the situation with compiling Ada in parallel. As for the compilation speed of Gnat vs Python, you have to remember that the Python "compiler" (it makes bytecode for a VM) is very simple, very little optimization, no typechecking, etc. But Gnat should compile faster with optimization turned off than with it on, for your debugging builds.