From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x12c.google.com (mail-lf1-x12c.google.com [IPv6:2a00:1450:4864:20::12c]) by sourceware.org (Postfix) with ESMTPS id A0A073858D33 for ; Mon, 9 Jan 2023 03:45:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A0A073858D33 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-lf1-x12c.google.com with SMTP id bf43so11094697lfb.6 for ; Sun, 08 Jan 2023 19:45:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=IkDUjMfLDe2JoqDEspHHbANGIpCSY1+12hSG1c1jFbw=; b=AsKVzHdI3l2Hx6sUEWTG2gVL6UceJBxUYZ7RdxtZyowyrOZtQoDBMZ8OusqgmTxtn5 79xkrLUKh7zGW0CYRNxjK4rOagpg3VSqlN4IjCzOHLouXeIWr2MpB9u5fE6FKlrkGrMK q3a64vJCfIrgYQSslS1xtTXqGHi69iEaT6/uUpuF+TxcrbwwKPpTVkqpfZi9b+0PYRNT M2HDoxfxipxuaBPG41ilPFdwCIU23VvWBBRvxE9KxTIIl4vk+bse1s8Yd8IkWCBTf9bm s7AKTTpVrPQ/HbVXRUAh6YHgaHVq+B5LuIhUPF+ykM0idYmeoSkXGw1eClSn5Er0apYE +RyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=IkDUjMfLDe2JoqDEspHHbANGIpCSY1+12hSG1c1jFbw=; b=jy7XuICfths1CGTzJ0PQhoddS0RyPKDpR1twFy22jQHtoE0XLT9KGhM18F4EKhjWYq h6fL46EkAsHsIqWgPf4tV/7Pm0B0LDwsEJimOaqZL1IjxrInMhJJjuB4ZG9ojAxqPC8+ sc03EacbJad0u6dIGxzilaZae5P/BKVcVl0qjClE4B2TAFj+e4bYcWsyF4ydKXdqT2Nc nAB4bEP08RW4BnWEWrRjyBByvKjP6/J/rIC0UIVUEqwUFd/JTAz/6Hbb4O30g2CjldSB m9xcNgFg6U4Ij5Aeb0/s+xA36p20lufUjoZzKx94v/7WjWO3+YO5fPvgmKuwzPfTKj/W 5xIQ== X-Gm-Message-State: AFqh2koyslaY1QPZdz4ql64Q5LblU6OXROEbLUgmpiXqZZi5bUGwi6xj VSUYh0qowFc9tlAK7CqgBxN91A59LlJ7z9KtFJnxhI73w24= X-Google-Smtp-Source: AMrXdXsOS6uH3I2/sbQhxViIPj3ZHFTDquJMY6SqqoQKdNIJNndtPdV5F0JKq+kqfdHYyRDuCVFH/SSrnI88KMXCbps= X-Received: by 2002:a05:6512:21c9:b0:4b5:b721:48ad with SMTP id d9-20020a05651221c900b004b5b72148admr6226816lft.390.1673235954878; Sun, 08 Jan 2023 19:45:54 -0800 (PST) MIME-Version: 1.0 From: Samuel Crow Date: Mon, 9 Jan 2023 03:45:42 +0000 Message-ID: Subject: Proposed showcase piece for libGCCJIT: WebAssembly frontend To: jit@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,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: Greetings! As a contributer to the W2C2 project on GitHub ( https://github.com/turbolent/w2c2 ), I was wondering if a static compiler that tied in to the LibGCCJIT frontend would be a good idea for a showcase piece. If yes, I have an idea for a compilation algorithm that should make the compilation quite parallelizable. Currently, the build of W2C2 can output multiple C files from one WebAssembly module using the WASI standard as a linkage target so that the functions can parallel build. I have a plan that can take that a step farther but I'm not sure if the JIT frontend is best or just a custom GCC frontend. I've just joined the mailing list so I'll just leave this as a teaser for now. If interested I'll spell it out in greater detail later. One thing that prompted me to ask is that several of the showcase pieces on the LibGCCJIT webpage that tried it have since moved on to other JIT compilers or are no longer available. I like the idea of having GCC in a shared object though, even if for no other reason than to be able to run it as reentrant code. I'm typing this message from the Beta 4 of Haiku Release 1 and just love that GCC is used on so many platfroms including this one. Yours truly, Samuel D. Crow