From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by sourceware.org (Postfix) with ESMTPS id 937413857BB2 for ; Tue, 31 May 2022 09:20:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 937413857BB2 Received: by mail-wr1-x430.google.com with SMTP id h5so9717818wrb.0 for ; Tue, 31 May 2022 02:20:57 -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=xVtTqcpNQHAiJ6MxXXbPTETErriy43fwZ9k24J/BrT4=; b=qDgmki7kE1kX+TWyZzNMvwBMFIZhTaAsj1iKjcjc6QEPm9s2OvEOgzvuSc0zTYJDL9 JMoOIOrfnlvKjyG8ir+yUOfvqEbTiOhEIJveyCBURDCXuHGS1LvkpTtXtj4152UPTCGK wrCA9VlJ1mZ+l3ql5H6QPU70g+EP5g26WTxXIMoU9QcUQGf6P6vuS5VGkr+oFy7yFa+d irW4p+pAIo5X+hxb/eBHLwa5b3uZMWoLDvjLH3s9jWaHpRDrX3etWE/Vp/DMRhR76aVa 22HBHOJwqiDBBGK/OWqJbI0UOiv5jdpPhtOGZV6iYY0Nlv7kXEHkQh6rXP9Oe6LtB+/y 1uQA== X-Gm-Message-State: AOAM532gmvoolJeks40N1L/AInB4WjvQxve9+s26De1ody6/GItpO5p7 W5wArP32PikFK00/afhLIGCYyQNRPwVNirWayxk= X-Google-Smtp-Source: ABdhPJyln9NsRBU7pamFF0Ab0kwaQ3YZ79PT/tOEwlhBI5ujUJBbOMKt16AZc2K5HlrmcLq976uwHWCVXvUPbYhId3A= X-Received: by 2002:a05:6000:1812:b0:210:2eb1:4606 with SMTP id m18-20020a056000181200b002102eb14606mr10101354wrh.593.1653988855884; Tue, 31 May 2022 02:20:55 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Tue, 31 May 2022 09:20:43 +0000 Message-ID: Subject: Re: Format of Compiled Module Interface (gcm file - c++20 modules) ? To: Piotr Krukowiecki Cc: gcc-help X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, 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-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 May 2022 09:20:59 -0000 On Mon, 30 May 2022, 16:03 Piotr Krukowiecki via Gcc-help, < gcc-help@gcc.gnu.org> wrote: > Hi, > > is there a description of .gcm file content? > > I've read > https://gcc.gnu.org/onlinedocs/gcc/C_002b_002b-Compiled-Module-Interface.html > so I understand it's ELF32 file, but I'd like to understand what's > kept inside and how. For example, an inline function body may be > present inside CMI, I'd like to know how to find it and parse it. > > It seems that gcc implementation is in > https://github.com/gcc-mirror/gcc/blob/master/gcc/cp/module.cc but is > the code the only documentation? > There's also https://gcc.gnu.org/wiki/cxx-modules and Nathan Sidwell's GNU Cauldron and cppcon talks. > >