From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-74-118.ec2.internal X-Spam-Level: * X-Spam-Status: No, score=1.1 required=3.0 tests=BAYES_00,FROM_SUSPICIOUS_NTLD, FROM_SUSPICIOUS_NTLD_FP,PDS_OTHER_BAD_TLD autolearn=no autolearn_force=no version=3.4.6 Path: eternal-september.org!reader02.eternal-september.org!aioe.org!dGELjPO44lRgUjmZYA5/xw.user.46.165.242.75.POSTED!not-for-mail From: Fernando Oleo Blanco Newsgroups: comp.lang.ada Subject: Re: Help: Ada in NetBSD Date: Fri, 17 Sep 2021 19:19:54 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <646f270d-0e65-46a5-b40a-02afab608f1en@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: gioia.aioe.org; logging-data="34615"; posting-host="dGELjPO44lRgUjmZYA5/xw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.9.2 Xref: reader02.eternal-september.org comp.lang.ada:62763 List-Id: On 14.09.21 00:24, Dennis Lee Bieber wrote: > The difference between 32 and 64 bit is significant when compiling > code, as it determines if the code does native 64-bit "long integers" or > requires software emulation for such data lengths. > While I understand that part, I still do not fully understand why do we need _exact_ entries for the same OS but different architectures. If we are just copypasting code, it would be cleaner, shorter, more maintainable and concise to just match over the OS and not the arch. And I think there are no architecture dependent bits int the (large) OS entries in the Makefile.rtl file. I would expect the compiler to do as you say, generate valid code for that architecture. But that would be the task of the compiler itself, not the RTL in large OSes (Linux, *BSDs), the RTL in those cases just simply translates the utilities/tools that the OS provides. Once again, the entries for x86 and x86_64 of FreeBSD are a exact copy. I am not saying that you are wrong, I am just trying to understand the why of this multiplication of effort. I saw nothing there that would affect the type of compilation as you describe it, like compiler directives. Regards, -- Fernando Oleo Blanco https://irvise.xyz