From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: tuhs-bounces@minnie.tuhs.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from minnie.tuhs.org (minnie.tuhs.org [45.79.103.53]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id e11dc4db for ; Tue, 30 Oct 2018 19:02:08 +0000 (UTC) Received: by minnie.tuhs.org (Postfix, from userid 112) id C1474A2300; Wed, 31 Oct 2018 05:02:06 +1000 (AEST) Received: from minnie.tuhs.org (localhost [127.0.0.1]) by minnie.tuhs.org (Postfix) with ESMTP id 7D502A22EC; Wed, 31 Oct 2018 05:01:31 +1000 (AEST) Received: by minnie.tuhs.org (Postfix, from userid 112) id CD890A22EA; Wed, 31 Oct 2018 03:53:33 +1000 (AEST) Received: from mail-lj1-f170.google.com (mail-lj1-f170.google.com [209.85.208.170]) by minnie.tuhs.org (Postfix) with ESMTPS id 382CCA22E9 for ; Wed, 31 Oct 2018 03:53:28 +1000 (AEST) Received: by mail-lj1-f170.google.com with SMTP id g8-v6so9368001ljk.1 for ; Tue, 30 Oct 2018 10:53:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=T/Du8pe2UVn3RFi6mfUkGut5oUi/6JpcPAtPdJccLF8=; b=Z62J33atvpReRTKU1VrMh1oPCTGMu/OUpkQmk5CQkzVcZW3h5bAOqtlAutFkx23JH6 NxMEmNobVGtDaAkKQdiamEJ3+gTNv1TV8x5d03JVDzXayPPv6lcFUGwGMuafpxNsoiBd 4hUT19OdVQNbA/yPECXZdvP6wJ1WmwPrAB1g4OKYHHM8sAujHbCEswNUQgXkq5fyPWRV qlg96xDTxNXUY5+nOfT9j8X60nr5hjx2LWqdbTQkrVpaCNmWhWbXXR9YH5sx00eaQPFt AZdfWVP9nQZ+2b8uC08FouSbyBdoMXc4ER7/iPq8/UdgBV2vFyVCpbpDhOAE3tC3xZe7 Bn6A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=T/Du8pe2UVn3RFi6mfUkGut5oUi/6JpcPAtPdJccLF8=; b=G0a0Y28HmXK15lr9IqVmgnmEcpgqNeHhM0JyEONdU41rdQSoeCEI+8swVo85HEelEP WjEwWWbncXl9kRSoyLAuzLQ/rbAhEerhg4RMR9jU9vVGZjoyOOdTrEkfismbl+9Sosxb UPm+2Sn4fQAXonzQJKzyVirWSzUa7z3g/Crswe7juY2og2WwDqS9OBrY4TeXsQ0TmMZ3 NXBT9IjEm2D6uveJfC0y17iKj0WmEy+k/zHO5kzbYpBaydAVDiLQJ/ik03PO8D08WJVj +3Dj30XeNI+8diJ3B9m38oOzIQkGD2dbfnPyjcfWnZOt26MDnB8diKBChBaczgf4Ip9Z aP2w== X-Gm-Message-State: AGRZ1gKuUcQ/e7+pIeLWNvdG0L8NUO1aVOeu+jMF6+NFs8HyiWbyKYPn UrXtg64BALZ5c8FWzDTIm9sJBCWiqNjA7jFPA2g= X-Google-Smtp-Source: AJdET5f10pchpjz2Hfff6ed4EJUG8sgo9zaG0LvK1vR0GeylrRhO9LOx1j8ILyaAzR85cK1N3pkG5S6u1TlN7c5Kn1o= X-Received: by 2002:a2e:3918:: with SMTP id g24-v6mr12583748lja.113.1540922006516; Tue, 30 Oct 2018 10:53:26 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a2e:3a11:0:0:0:0:0 with HTTP; Tue, 30 Oct 2018 10:53:26 -0700 (PDT) In-Reply-To: References: <47BC5434-D668-48D1-AA45-361B6D1E2E3A@quintile.net> <20181030091259.GA44474@indra.papnet.eu> From: Paul Winalski Date: Tue, 30 Oct 2018 13:53:26 -0400 Message-ID: To: Warner Losh Content-Type: text/plain; charset="UTF-8" Subject: Re: [TUHS] C entry keyword X-BeenThere: tuhs@minnie.tuhs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: The Unix Heritage Society mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: TUHS main list Errors-To: tuhs-bounces@minnie.tuhs.org Sender: "TUHS" In Fortran secondary entry points served two main purposes. It allowed for sharing of code for similar routines (as in Angelo Papenhoff's C example), which was important when your program had to fit in only a few K of memory. Secondly, it provided partial relief for Fortran's very restrictive variable-scoping rules. It's a pain in the butt for compiler optimizers, although certain modern interprocedural optimizations emit code that is the moral equivalent of a routine with multiple entry points. -Paul W.