From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x431.google.com (mail-pf1-x431.google.com [IPv6:2607:f8b0:4864:20::431]) by sourceware.org (Postfix) with ESMTPS id 5F6123857B93 for ; Mon, 30 May 2022 16:02:02 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 5F6123857B93 Received: by mail-pf1-x431.google.com with SMTP id j6so10885028pfe.13 for ; Mon, 30 May 2022 09:02:02 -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:from:date:message-id:subject:to; bh=QnUpmnmm5F/waSVaDWK0Uz1RI5sEaFOhhbISHzsasFA=; b=wIGyibNS1vpaaBIXb8X2VvUsZRCh7hOVMJM54oc9+IyGeyj2639+nOwTEdQS58Fkl6 z4x96384O5mZTrudblwek71JkeWa+Ss6SxAAkMTeYj+BAIBdUTWmyUIBFLupMnN8Uc33 5bmYwMW7iPZPF9egsKA4O+hDhFiok3cTpu1KsBWDqS7CKLw0oyP0mTsPz4dZM39fCehc /NHdsq/msRPPq+BXgtflkgIhpAgS9PlUraN2//x3bZ10wjxotbMWpscwT1E1FvDYXXVR 9O7NuzrrRWf3ZxV3z0ungkNO21W/BxiS2O3UYcic8wT6UaI9FVMG/S6ehEHGHqKQk64U uYvg== X-Gm-Message-State: AOAM532pqYD06ugSrICjnI37uF+lFnXf+x7Fc2QZYVZZ5AJoFJiZAa3o LB5Jj3B08DOk9Tp/ODO7jXZcEn4w0VgVSwom7HPl1TudH2w= X-Google-Smtp-Source: ABdhPJz9fYGbj7uSLwsG0DZ3hj90COnPk6GySw37oFFnLGTjA/44MQoVGleIWKJHrmb5Ob1K0940i7EPSqv/QwD4olA= X-Received: by 2002:a65:554d:0:b0:3c6:3f22:72cd with SMTP id t13-20020a65554d000000b003c63f2272cdmr48890091pgr.283.1653926521275; Mon, 30 May 2022 09:02:01 -0700 (PDT) MIME-Version: 1.0 From: Piotr Krukowiecki Date: Mon, 30 May 2022 18:01:48 +0200 Message-ID: Subject: Format of Compiled Module Interface (gcm file - c++20 modules) ? To: gcc-help@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 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, 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 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: Mon, 30 May 2022 16:02:05 -0000 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? Thanks, -- Piotr Krukowiecki