From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vs1-xe2a.google.com (mail-vs1-xe2a.google.com [IPv6:2607:f8b0:4864:20::e2a]) by sourceware.org (Postfix) with ESMTPS id 760B23858D1E for ; Mon, 26 Jun 2023 16:59:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 760B23858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vs1-xe2a.google.com with SMTP id ada2fe7eead31-440bb9bad3cso839176137.0 for ; Mon, 26 Jun 2023 09:59:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1687798790; x=1690390790; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=fhEtd8UNZsWTxzuO4zLcttf9EBaUiV5eFCkpt9CO644=; b=GcgrnzjYSHHXmow0Bh6y6Mb+MMtGMbKH2nfATdslphtF3rSOz0l+LR87iXLeoXtRmo cRHgKSsADO0kDFJKRZJEq6wCworaDxLsNUfez+PGDrwTLJv2mXEIXC733E0Jz3Ng3cNK 6SYVcmIiH7OONwIfzeoC47R/4/vOeeV2xFoPLkSSKi9yIZyYTTRyCN0A4lElvWzGPZwr 2D/kZsl/ShevP6siNP5EgHqIurwW+GPxH4fs8OQhNNu/izhum7RmxhAi5CFk2B/1um7q QD23O4ANbB+El2WIP+9D40dd41bho0UTZoK4XKSK694XauO9dkw/t9j5wc4FGwNIov+Q UtuQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687798790; x=1690390790; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=fhEtd8UNZsWTxzuO4zLcttf9EBaUiV5eFCkpt9CO644=; b=bEt6uIAfCEf6i9Vrxk5fBPPoJBrFI0ZvZEZHi4Zzs2yRjkadwD+L/Wwfc1+2iZFTlg RLigNOd1rwYUUUbltxzZbzfXUEC1eTLxJCVXwwuHBDDU31iWQt64i4XXItY994o+0TRY 7aMG8GUE4mWKGm2XFfuerSCtKVoobxI26AVkf9uud99+WPIKcj7iDat9WRMWp7Yl26k7 p3Xlui6xTFkQc4j6JJn4WI9eGBFaTVES74HHQZJQJhl8y9KWT7QL0XHgCKz3Gk+HP13H kRazUijyf1BNM4fQZ/UeRMlk1XVJPUXHcvaIMavy4T7nMNQ42mND7hmlDTsiduFGGq3d ql3g== X-Gm-Message-State: AC+VfDzlWZ1C3AQm+s6ZrrVvMmMG7jecRQqfgX+rAeLoSArUTvotefFD XfHL7GG65WvQTyC7nURWurhJCt6y1nKxb3CzeS00MY6mwIs= X-Google-Smtp-Source: ACHHUZ5cJBb08zscMJRjQiDXc6F4Ck65nE1MRi8Bp8oPzH5bOCK40PdZsxwKWJ8yFEGPhbG7KMloe8FSb0yKp8U9DPM= X-Received: by 2002:a67:ed4c:0:b0:43f:561c:2ea3 with SMTP id m12-20020a67ed4c000000b0043f561c2ea3mr10376848vsp.21.1687798789677; Mon, 26 Jun 2023 09:59:49 -0700 (PDT) MIME-Version: 1.0 From: Aaron Lorey Date: Mon, 26 Jun 2023 18:59:38 +0200 Message-ID: Subject: Mapping of TREE_CODE to tree_node To: gcc@gcc.gnu.org Content-Type: multipart/alternative; boundary="0000000000004fa64705ff0b4736" X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,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 List-Id: --0000000000004fa64705ff0b4736 Content-Type: text/plain; charset="UTF-8" Hello, this is the first time I am writing to a mailing list. I've tried researching the normal procedure but nothing special seems to be required. I'm currently trying to do a complete graph-discovery of GCC's symtab / tree_nodes to dump the full internal representation of the compilation unit. Gitlab: https://gitlab.com/graph-prog/code-database It is not exceptionally heavy but also not very easy to serialize the internal state to disk. I think this task was simply not considered in the design. Reason for writing to the mailing list are the troubles in connecting the TREE_CODE enumeration to the appropriate struct tree_node memory layout without guessing. Can you provide a mapping of TREE_CODE to tree_node memory layout? kind regards --0000000000004fa64705ff0b4736--