From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x62d.google.com (mail-ej1-x62d.google.com [IPv6:2a00:1450:4864:20::62d]) by sourceware.org (Postfix) with ESMTPS id 3EE2F3849AF0 for ; Sat, 11 May 2024 03:39:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3EE2F3849AF0 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3EE2F3849AF0 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::62d ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715398768; cv=none; b=TdeA51lefyHxF7T8oDXiF6qXX2LcJ/faYUgum8GvHtKTvkWb+Zbx8CqzDrKdePROglHiWnzln5gyHRXCdxfZHP2I4JZjXTPGiBf8nlTV8rq86XK2Pe/gWSDPW9zHtW+TJKP2eJUFtkk5TzpbNvLGYcmnfDc6yBgpTiHR7T+uadA= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1715398768; c=relaxed/simple; bh=5dETMELfngbno6d8tj+5OwcQGVh1wCJ4NM39mfV9z40=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=vAFWXhr2/mYyciY9xVZ6PvchaeHMpPXkPFIye/yCsRild0Gy8wVpaMK7o/3TJc+3qEfUvI/r/HWcXSvsMNYqaJe3ZS9I/QQHrgqgxfVouba2rv10k0nIU5IrRCGdSEywSf3zEDDwSq3FHCy3yHOW9d9y8UAejjq5Q3jzxdHN1ZU= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-a59b81d087aso672692566b.3 for ; Fri, 10 May 2024 20:39:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1715398759; x=1716003559; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=ywakSdu6wRrOjQnclcduBGdBfdP7fR2/4rLsn2zX7hg=; b=XM8ofwE9nLHv8goeybzn37ibWqN5lDTn8w+7nz7N5SAydmGTJCRhSADGAEDhLDCyDM rsK0UPgQTcSwvOkw3MvNa1tAhQ/rzPHp9ij5U6JWcPskOCNKG+cK+ko1P2Ae+a3Uy2FB MnZWR0oyzV7nA7UMuJna8Tr2diIbz3AZw7S0pV5U2UCHlP6KcJ6Pbge1qYngUbJndntF YQSbQWD5p7EjPHbkSxbrIicwWVMlxRxZOWcmKsmuq5og+c2Nc9jW/9r2+lEiE2SZKZ/1 A49LO97qvUhYCubqgi5lKJZtmrkGBv0f7Jua/76M03CPvazCk+BSNyC0hr3YGlngSvTg LWzw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715398759; x=1716003559; h=content-transfer-encoding:mime-version:user-agent:message-id:date :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=ywakSdu6wRrOjQnclcduBGdBfdP7fR2/4rLsn2zX7hg=; b=wsmugxtGdJZsjD98rIce2ZuTYP+qz08Ted8iZv3ln8n//2YHzgUEIrF64bMjd48Sy1 Rrvb1+4a+vA7RFkNADNcnkPWko9a+rh0eVMMjAqx0L3YMi23YA2S4MQmmXM3yJh2Mlkj 8s/pjVn1HNn8SGTb4NWvs8Bz5tMQTVgym6e9hqhAjWhEclxsdLAA1mj2iGY2TVnRTi7i D42eGKzjYuXIfGVi6NeQHSO71SwqG1+mw5aItuwh51+9Jsr7J2hzlaV0hN3Iaoz3M+Kf JceirX962Ut94Q6qX8XWut+Oz2vRNw48IS3A9UWm2dUszto36pHW5ue7zej9QVS6UWrq 0Xrg== X-Gm-Message-State: AOJu0YzTJuexlPlGB/YR28udTlkK1cL71qrs9VfM+iuT7o5fD4sfuXIK vApA5ITQNPMWjefCAcJgDanTtOsBX9MOsjxOfRDu7V1HnPFTnuMR X-Google-Smtp-Source: AGHT+IEDiI319b065/MevTWzHftuk2P2lYU+agqqG8ih+3BbQBikolQOZl4Z40//y1uuXMXT5uKfJw== X-Received: by 2002:a17:906:3e0d:b0:a5a:1077:334 with SMTP id a640c23a62f3a-a5a2d57a39amr422652366b.26.1715398758622; Fri, 10 May 2024 20:39:18 -0700 (PDT) Received: from pro2.fritz.box (p4fe3ae11.dip0.t-ipconnect.de. [79.227.174.17]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a179c7fcfsm257331866b.119.2024.05.10.20.39.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 10 May 2024 20:39:18 -0700 (PDT) From: =?utf-8?Q?Gerd_M=C3=B6llmann?= To: David Malcolm Cc: jit@gcc.gnu.org, Andrea Corallo Subject: Re: Debug info on macOS In-Reply-To: <7fee40c1649f53f2e2270084bfceac51f6ff7a36.camel@redhat.com> (David Malcolm's message of "Fri, 10 May 2024 16:17:09 -0400") References: <7fee40c1649f53f2e2270084bfceac51f6ff7a36.camel@redhat.com> Date: Sat, 11 May 2024 05:39:17 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_SHORT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,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: David Malcolm writes: > As I understand it, Emacs is using libgccjit to do ahead-of-time > compilation, presumably compiling the optimized ELisp code to machine > code as a shared library. Correct. > Is Emacs using gcc_jit_context_compile_to_file with > GCC_JIT_OUTPUT_KIND_DYNAMIC_LIBRARY, or is it doing something more > complicated? Yes. (Sorry, I forgot to CC Andrea; he sent me here :-)). > If that's what it's doing, you might want to take a look > at=C2=A0playback::context::compile in gcc/jit-playback.cc (and try steppi= ng > through it in the debugger). In particular, the > playback::compile_to_file::postprocess implementation of the > playback::context::postprocess vfunc is responsible for taking a .s in > a tempdir and turning it into the desired output. Perhaps there's some > macOS-specific special-casing needed there? > > You might also find it useful to look at the overview of how > libgccjit's internals here: > https://gcc.gnu.org/onlinedocs/jit/internals/index.html#overview-of-code-= structure > > Hope this is helpful Yes it is. Thanks, David!