From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: =?UTF-8?Q?Nicolas_B=C3=A9rtolo?= Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] [WIP] Port feature/native-comp to Windows. Date: Sat, 9 May 2020 13:07:44 -0300 Message-ID: References: <5eb5b953.1c69fb81.a67ce.a764@mx.google.com> <83sgg9drx1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="119287"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org, Andrea Corallo To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat May 09 18:08:35 2020 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jXS1j-000Uv6-1C for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 18:08:35 +0200 Original-Received: from localhost ([::1]:56966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jXS1h-0000EK-I5 for ged-emacs-devel@m.gmane-mx.org; Sat, 09 May 2020 12:08:33 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49832) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jXS18-00084f-Fb for emacs-devel@gnu.org; Sat, 09 May 2020 12:07:58 -0400 Original-Received: from mail-oi1-x230.google.com ([2607:f8b0:4864:20::230]:45181) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jXS17-0006BB-LK; Sat, 09 May 2020 12:07:58 -0400 Original-Received: by mail-oi1-x230.google.com with SMTP id k133so11096560oih.12; Sat, 09 May 2020 09:07:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=OajHnQKe3RaVbAW47qMSQF3nL1GDKRVydoL6zjUo4po=; b=rDREKOaFWuwz4tfYPb2sBFRH9c5Et06+zsHFpeRNtOEt5rqSauKPiFCw2rhfujAW9x 1Un8sBwbgUyNadcR+/+XL0egNiT8Uq4bb34aCIgQe8SiKoj6IOukKYJRulDwVcaQEhag BPLEms+LWV9Ig68vAI8HsNDpSgxZVi7oZ73MeQGnkLZc50FtE+BYDbGV+iKSCf/TJVqJ zkqr0Y4L3FaI1/2ADFC/W+u2DDNPJYx3KBMrzuRsA04UxgrY1fVEnjcTnMKRE6s9Kcfk r6J/FJ+UHgwNxyez3ZGhuNzymdmzQz5dJuscXvG5ijMMjmKvnKPZea2BRDMQLI9RWdFw Wnhg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=OajHnQKe3RaVbAW47qMSQF3nL1GDKRVydoL6zjUo4po=; b=cM5Aguk9aiA9xEPKeAYaoUOZj9VsKVlrM9PYHCgmxZ373/dXtY2+bJfp4DVKpIqjzC 1TyDtLdK8iXTANs0bXl7NTnW/XKCFqLfLi6Fvo51Ht5tNjMVUEHDSgkdIe7l6ETUI1Qi +htXwCe11k4RPzU11WAjc63MVBlqkuYeiUg2Yseo9gMdsS8MglhsNT498Mlvp3+IVKEs vnDLeYXd5KYqJ6r74i29YW+IFEia+TSMULqFkhLqEExzhlVZ0L2q2NOGLpJg3aravtfF kXu92VwCqNu3ongnnMumGjeuiHnALdF8L43YUmH1seMeDc3CZSNF7zUWb1tqCHfMS34l iiYw== X-Gm-Message-State: AGi0PuaEpspJqdNSsAfksiDfvvECzIIvGkZzi1FsWZU9BOifwjAkQh76 RqxpHTlAYX2St4oDkm5n6CRrVCgRFidHeCA/bgvZ7mpOq1HJZg== X-Google-Smtp-Source: APiQypKQ1j29RdgCWM7xkSG0xezNGgxTkZjRfF5s/OYZrZl+IYZJd85pdiiACiYQp9oybc3kl/qioZVvolw3Bz5dLh4= X-Received: by 2002:aca:c68b:: with SMTP id w133mr14534946oif.175.1589040475920; Sat, 09 May 2020 09:07:55 -0700 (PDT) In-Reply-To: <83sgg9drx1.fsf@gnu.org> Received-SPF: pass client-ip=2607:f8b0:4864:20::230; envelope-from=nicolasbertolo@gmail.com; helo=mail-oi1-x230.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:249493 Archived-At: > IMO, we must not require this from Emacs users, most of them will not > have a full MSYS installation (and shouldn't be required to do that). > A MinGW GCC and Binutils installation should be enough. Definitely. Ideally that would be shipped with Emacs just like 3rd party libraries are. > Can you tell the details? Where does the freloc table come into play > in this context? It does not. It was a question to Andrea because I do not understand why we can't use the OS dynamic linker. It is not related to the MSYS issue. The freloc table stores a bunch of function pointers to internal Emacs functions. I think it would be cleaner to just declare each of those functions as an "IMPORTED" function, which is equivalent to adding a line like this to the generated code: extern T a_function(T1, T2, ... Tn); Then the dynamic linker will wire things together when loading the eln file= . Maybe I am missing something about how dynamic linking works. Nicolas El s=C3=A1b., 9 may. 2020 a las 12:55, Eli Zaretskii () escri= bi=C3=B3: > > > From: Nicolas B=C3=A9rtolo > > Date: Sat, 9 May 2020 12:40:18 -0300 > > Cc: "emacs-devel@gnu.org" > > > > The easiest way is to just run Emacs from a MSYS shell. > > IMO, we must not require this from Emacs users, most of them will not > have a full MSYS installation (and shouldn't be required to do that). > A MinGW GCC and Binutils installation should be enough. > > > PS: I don't understand why the freloc table is necessary. Is it impossi= ble to > > rely on the dynamic linker to solve that when calling dlopen()? > > Can you tell the details? Where does the freloc table come into play > in this context?