From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED.2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Hardware independent programming Date: Thu, 2 Jul 2020 09:25:39 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <5ef9712d$0$1221$e4fe514c@news.kpn.nl> <5efd7b78$0$1434$e4fe514c@news.kpn.nl> NNTP-Posting-Host: 2uCIJahv+a4XEBqttj5Vkw.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader01.eternal-september.org comp.lang.ada:59309 List-Id: On 02/07/2020 08:15, ldries46 wrote: > If we want to create hardware or operating system independent programs > it is in some situations necessary to use environmental variable from > which a package in Ada or in other languages can get values from. > The names of these values should then in all these systems the same. It is the OS and the OS major release, e.g. like WIN32_WINNT numbers: 16#400# is NT 4.0, 16#502 is XP etc. It is the architecture x86_64, armhf etc. It is the host machine and target machine in the case of cross compiling. But most of this can be abstracted away if AdaCore put more efforts into. E.g. the notorious case is pragma Atomic. If the compiler supported it for all architectures there would be almost no need to distinguish 32 and 64-bit targets. -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de