From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 27F4F3858D1E for ; Tue, 24 Jan 2023 13:27:24 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 27F4F3858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1674566843; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rh/LfwmbQGW1TgIDwa7JIhWiViWJMltpFY4pPiGilwc=; b=AzzrsT/FXJdvvGgvuaC5KNDHQQDbu/c3GUXgrwkxmG/kKncjIlK5LRznAlC/L/Ci1uzWV4 M4PuQIuEr20u/5MU9CBxY8WOQkWZlBckwU6UGPYzjZ7l301YqEn2YV28TirDhzTU3SDjp6 j6dzvKSEDQNl1PUn0LpahMkS7ogICdU= Received: from mail-vs1-f70.google.com (mail-vs1-f70.google.com [209.85.217.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_128_GCM_SHA256) id us-mta-487-6ChrwaacO3KGrQLhIXlHew-1; Tue, 24 Jan 2023 08:27:22 -0500 X-MC-Unique: 6ChrwaacO3KGrQLhIXlHew-1 Received: by mail-vs1-f70.google.com with SMTP id 190-20020a6708c7000000b003d3efe13b28so3689900vsi.19 for ; Tue, 24 Jan 2023 05:27:22 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=Rh/LfwmbQGW1TgIDwa7JIhWiViWJMltpFY4pPiGilwc=; b=1qy9Np4QbH7YW+8OlQapti2EG85zNjpvlS2pljspsLorms2BdmEBgvYjK2bTzI2mXX h4l/P25A0IRCfMvOYki4o3wnAJKRpnNGLcJ6bxvKP6VwY2hriG7gfFvBZZhnBNW7YD0W UHk28TvZXHXQsYQV6sRU5F/mZeigeD2ZLvMEvh2N86gB0P4BzO5eV3YU6QCkQKOp5PEw cv14lc3SWN5epW3uhYbODI8LW1CnN/A2AcMyxZxnPgE1QdpdENRWdfsB7oVSVIaZGhYR 3HO2uDnP4PcU2hECr/WGF9mE+5h4eXZZYzrTXobW/FzcZUYIIcclEJn/UR2dZ7TvFSj5 LMXw== X-Gm-Message-State: AFqh2krKlOGZZtBbGUNfdliSGQZJqsxe2rbBM8x11HLOBDjd355b2xQr rXySs7fcBUa0qqRjqPKbLthFB04f3znBfENj9rY7qRUDecF6DeHU7cUDb5s9YNDx3UBkYFpyxr+ S+ieVvuYcExhfHW8gJA== X-Received: by 2002:a05:6102:34ef:b0:3d9:928d:fa54 with SMTP id bi15-20020a05610234ef00b003d9928dfa54mr10035015vsb.23.1674566841778; Tue, 24 Jan 2023 05:27:21 -0800 (PST) X-Google-Smtp-Source: AMrXdXv2bN6abrKIe01fFqX0sAnG3a1J8/ifOCFnN7ynaB62DDeLWNdPTaRAgf3WCtq/JcW8CZX39g== X-Received: by 2002:a05:6102:34ef:b0:3d9:928d:fa54 with SMTP id bi15-20020a05610234ef00b003d9928dfa54mr10035002vsb.23.1674566841551; Tue, 24 Jan 2023 05:27:21 -0800 (PST) Received: from [192.168.1.18] ([79.123.83.169]) by smtp.gmail.com with ESMTPSA id x17-20020a05620a14b100b007069fde14a6sm1442304qkj.25.2023.01.24.05.27.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 24 Jan 2023 05:27:21 -0800 (PST) Message-ID: <023b1467-8a49-5380-40cb-a4e7d8d66c19@redhat.com> Date: Tue, 24 Jan 2023 13:27:19 +0000 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.6.0 Subject: Re: Old story (30 years ago) To: Cut Hour , binutils@sourceware.org References: <328bee46-edc9-3e33-abf6-42d907ba60b0@redhat.com> <3a337aa1-032b-1d19-8c42-db8a117841c0@gmail.com> From: Nick Clifton In-Reply-To: <3a337aa1-032b-1d19-8c42-db8a117841c0@gmail.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-GB Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Hi Cut Hour, >> This is not to say that exploring the idea is not worthwhile.  It >> might produce some interesting results.  But I would be hesitant about >> applying it to a generic tool like the linker without a real need. > > I myself had needed it.  My plan was like this.  Every instance has a > ptr to its class.  Every class has a method table (array of ptr to > function).  All methods are called via a ptr in the method table. > The syntax is almost the same as ObjC.  Binutils (for the structured > programming) is what makes this simplest OO language so hard to come > by.  Neither C++ nor ObjC nor Java pointed that out.  Again, is this > cleared in LLVM? I do not think so. I cannot say for sure, but linking with LLVM (and its linker LLD) is basically the same process as used by the binutils linker. The implementations differ, but what they do is basically the same. Cheers Nick