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!.POSTED!not-for-mail From: Brian Drummond Newsgroups: comp.lang.ada Subject: Re: LLVM and Ada Date: Thu, 22 Mar 2018 12:22:59 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <7eaadf74-c55f-4c00-8f13-bf027cce130e@googlegroups.com> <6188b81f-7d6a-4ea4-90d4-74142471d979@googlegroups.com> <66082e27-14ca-45d1-b8ff-7fe825cd2687@googlegroups.com> <17b6ac53-6b99-430e-8bac-63311ea1fffe@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Thu, 22 Mar 2018 12:22:59 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="c265d408f8de7ef78199a2de62899052"; logging-data="23003"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19JMjIwPDCTd2/qkSxyOmGTIMKgsVH7Ias=" User-Agent: Pan/0.141 (Tarzan's Death; 168b179 git.gnome.org/pan2) Cancel-Lock: sha1:OJv7Gu1qVliU0/K0tXrdYeg0yLI= Xref: reader02.eternal-september.org comp.lang.ada:51129 Date: 2018-03-22T12:22:59+00:00 List-Id: On Wed, 21 Mar 2018 06:08:44 -0700, carlojpisani wrote: > hi guys I need to port ghdl to PPC, MIPS, HPPA on PPC there are old > bootstrapper (e.g. 4.1.1) > but I haven't seen them for MIPS and HPPA > > vhdl seems able to be compiled by llvm, but ... llvm seems do have no > support for MIPS and HPPA > > no dice > > also, I'd like to port vhdl to SGI/MIPS under IRIX in this case, there > are commercial Ada compilers (e.g. with the MIPS/PRO toolchain) > > let me know The place for this would be https://github.com/ghdl/ghdl If you run into trouble, open an issue there, Tristan (the main author of ghdl) is very helpful. You need to *compile* ghdl using gcc (including gnat) so the easiest way would be if you have native (and fairly recent, >= gcc4.7) installations on your desired platforms. Otherwise, gcc can obviously be used to build cross-compilers, though that gets a bit trickier, and while building ghdl sa a crosscompiler ought to work, there may be some snags along the way. GHDL cannot be *compiled* with LLVM because there is no adequate Ada compiler in the LLVM toolchain. However, ghdl can be built to target 3 different code generation backends - gcc, llvm and its own JIT compiler (mcode) (To make ghdl/llvm work, Tristan had to solve LLVM's lack of support for nested procedures (and their scope rules) which I believe was the problem that stopped the Dragonegg Ada/LLVM compiler in its tracks. So an Ada/ LLVM compiler should be possible...) So I *think* you want to build ghdl for the gcc backend (to support your target CPUs). Whether you can do that natively or you need to cross- compile depends on having a modern enough gcc compiler on your system. -- Brian