From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cc-smtpout1.netcologne.de (cc-smtpout1.netcologne.de [89.1.8.211]) by sourceware.org (Postfix) with ESMTPS id 8A1413857C6D for ; Fri, 8 Jan 2021 22:18:14 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 8A1413857C6D Received: from cc-smtpin2.netcologne.de (cc-smtpin2.netcologne.de [89.1.8.202]) by cc-smtpout1.netcologne.de (Postfix) with ESMTP id 0EB061343E; Fri, 8 Jan 2021 23:18:13 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cc-smtpin2.netcologne.de (Postfix) with ESMTP id 0AF3511DBA; Fri, 8 Jan 2021 23:18:13 +0100 (CET) Received: from [2001:4dd7:2366:0:404f:fe14:e36c:a144] (helo=cc-smtpin2.netcologne.de) by localhost with ESMTP (eXpurgate 4.11.6) (envelope-from ) id 5ff8da24-024d-7f0000012729-7f000001adb2-1 for ; Fri, 08 Jan 2021 23:18:12 +0100 Received: from linux-p51k.fritz.box (2001-4dd7-2366-0-404f-fe14-e36c-a144.ipv6dyn.netcologne.de [IPv6:2001:4dd7:2366:0:404f:fe14:e36c:a144]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cc-smtpin2.netcologne.de (Postfix) with ESMTPSA; Fri, 8 Jan 2021 23:18:09 +0100 (CET) Subject: Re: apple silicon fortran To: Rosemary Mardling , Jerry DeLisle Cc: Fortran List , Iain Sandoe References: <941045F7-9782-408B-BF5A-015E2FAF246A@monash.edu> <7FCF49F0-EA95-44F1-B5B6-01393378783E@gmail.com> From: Thomas Koenig Message-ID: Date: Fri, 8 Jan 2021 23:18:08 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-DE Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, KAM_SHORT, NICE_REPLY_A, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Jan 2021 22:18:16 -0000 Hi Rosemary, > It seems NAG have a fortran compiler but it is quite expensive (GBP250 - I enquired): > > https://www.nag.com/news/first-fortran-compiler-apple-silicon-macs Well, NAG sort of cheat - they compile Fortran to C and then use the native C compiler. Makes it easier if there is already a C compiler on the target, no need to worry about ABIs and such. (Interestingly enough, the whole NAG compiler has a similar scope as the gfortran front end and library). It would be interesteing to see the C code they emit for certain constructs, for example for code accessing variables in an outer scope from contained procedures. Not sure if there is an option to do this. Best regards Thomas