From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x2d.google.com (mail-oa1-x2d.google.com [IPv6:2001:4860:4864:20::2d]) by sourceware.org (Postfix) with ESMTPS id AB5CC3857342 for ; Fri, 3 Jun 2022 08:16:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org AB5CC3857342 Received: by mail-oa1-x2d.google.com with SMTP id 586e51a60fabf-f2bb84f9edso9751970fac.10 for ; Fri, 03 Jun 2022 01:16:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=yl27DGb9PrfL4HRy2He1Yym3BMN8drem9e1FOfSNx70=; b=VNymKbosd2nE9JjprkH4g4SIpgv/jIjVgXySt0lLtK+xBLQbeAmondEf5lzqSuGMI1 ePw6gQttoKJY6cLSEndaupgyxypQziMzJaopfPGhgLnPj/2okEmoj7N1OrBBbW2U7KyX KX2ygaPR00fkiJd95v14lPksWUQlAAT9PQTp5ym+oDxQzK0TSqFHrZuX4EQhQUm2JOBt /Wu0bxjS2zzxmBU1/exLSOuEvysXlY8WW7IAHigOyhOK2lfWwpXg8e9wt7mkgE0s8BvW xWYAaV66gAB5dJH45DMvyEYF0lWJPNsejLNnTGWte39fzeVG7Ju1mH1Jpn3YYjojGw6D d/kw== X-Gm-Message-State: AOAM532Vukym8kboy9Po0VZ+HdbmcPc/mrGNXjPMNuQu/ZmJXKNBpyi7 /BAOm0FcLBQq9cru8SO7vMIz3S+wKRrIWJS9JTo= X-Google-Smtp-Source: ABdhPJyJRb0gBjZ5YVl/RMOau7HkHqOrP1T3tAFMkuOz6KT/6WDa2i2nz9tke896RLrYpMWRedfvqEmVitUgOVG32NE= X-Received: by 2002:a05:6870:d588:b0:f2:57ff:63a1 with SMTP id u8-20020a056870d58800b000f257ff63a1mr4837583oao.197.1654244184066; Fri, 03 Jun 2022 01:16:24 -0700 (PDT) MIME-Version: 1.0 References: <20220601115026.452a6840@vepi2> <14d31069-82ab-5a7a-2f35-15411da30141@uni-konstanz.de> In-Reply-To: From: Janne Blomqvist Date: Fri, 3 Jun 2022 11:16:13 +0300 Message-ID: Subject: Re: is there a way to find out gfortran version and/or options from a given binary? To: Arjen Markus Cc: Kay Diederichs , Fortran List Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=1.3 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Level: * X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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, 03 Jun 2022 08:16:26 -0000 On Fri, Jun 3, 2022 at 10:30 AM Arjen Markus via Fortran wrote: > > Hi Kay, > > (you forgot to reply to everybody ;)) > > I am using a Windows version of gfortran and strings. I use a file viewer > that comes with the Total Commander file manager. So, it may be something > specific to that version of strings. One caveat being that Fortran strings are not NULL terminated like C strings. So a tool that searches for C-style strings in a binary might not find Fortran-style strings unless there happens to be a NULL after them for some other reason. The version of strings included in GNU binutils searches for strings terminated by any non-printable character, so it finds Fortran style strings (and a lot of noise which isn't strings). > Op vr 3 jun. 2022 om 09:25 schreef Kay Diederichs < > kay.diederichs@uni-konstanz.de>: > > @Janne thanks for pointing out that -g does not make the code slower. > > Is there an option that prevents the sourcecode to be included when -g is > > used? You might try -frecord-gcc-switches. There's also -grecord-gcc-switches (which puts the info somewhere in the debug data), which is enabled by -g, but without -g it seems it doesn't do anything. -- Janne Blomqvist