public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Piotr Krukowiecki <piotr.krukowiecki@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: Format of Compiled Module Interface (gcm file - c++20 modules) ?
Date: Mon, 30 May 2022 18:01:48 +0200	[thread overview]
Message-ID: <CAA01Csq+dGhDrf5UTbUXbMPbCV=M1MFUHQtb7dWF6M8wcenTAw@mail.gmail.com> (raw)

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

             reply	other threads:[~2022-05-30 16:02 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-30 16:01 Piotr Krukowiecki [this message]
2022-05-31  9:20 ` Jonathan Wakely

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAA01Csq+dGhDrf5UTbUXbMPbCV=M1MFUHQtb7dWF6M8wcenTAw@mail.gmail.com' \
    --to=piotr.krukowiecki@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).