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: "J-P. Rosen" Newsgroups: comp.lang.ada Subject: Re: Ada cross-compiler? Date: Sat, 20 Jan 2018 10:26:23 +0100 Organization: Adalog Message-ID: References: <4d477f6f-2e4f-4eef-84c5-1f6e6230fe78@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Sat, 20 Jan 2018 09:26:23 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="09c1c48135f7f5dbc2f87d36a7b836b9"; logging-data="20538"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/IVs2kvXFtKQc/KRlqvu6b" User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 In-Reply-To: <4d477f6f-2e4f-4eef-84c5-1f6e6230fe78@googlegroups.com> Content-Language: fr Cancel-Lock: sha1:zCfGGBWTVERAM3eKHPp31vh/uUw= Xref: reader02.eternal-september.org comp.lang.ada:50017 Date: 2018-01-20T10:26:23+01:00 List-Id: Le 19/01/2018 à 17:59, Leff Ivanov a écrit : > Is there any ready to use Ada cross-compiler toolchain available > today? I'd like to compile Ada code targeting Windows, some generic > Linux and Mac OSX. And I'd like to do it on Windows or Linux. Is it > somehow possible today? > Given current technology, the simplest way is to have a VM with the various OS you need, and a native compiler on each. Since the VM can access the host's disk, you keep only one set of source files, and it's much simpler than building you own cross-compiler. At least, that's what I do when I need f.e. to build the Linux version of AdaControl from my Windows laptop (I also have a real Linux box in the office, but I'm often away from it). -- J-P. Rosen Adalog 2 rue du Docteur Lombard, 92441 Issy-les-Moulineaux CEDEX Tel: +33 1 45 29 21 52, Fax: +33 1 45 29 25 00 http://www.adalog.fr