From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-yb1-xb2c.google.com (mail-yb1-xb2c.google.com [IPv6:2607:f8b0:4864:20::b2c]) by sourceware.org (Postfix) with ESMTPS id A48563858405 for ; Tue, 31 Aug 2021 06:39:46 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A48563858405 Received: by mail-yb1-xb2c.google.com with SMTP id f15so32890493ybg.3 for ; Mon, 30 Aug 2021 23:39:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=RaVCR2gCUp8WTk0JPEYgA1nwCHZlasisf3n6NSAN9/Y=; b=tpeyCd/wsAHKZh0j5lVo3v44OFpbwNy7k3M5hO7L14FcYIlc1grdRwLCdu7XE77Ld3 j0xJYtCqcRkKMhi1O7GUHemIbEBY3hfR5L65JT7h3C0y2k3dM/NlZXDRbUBn66+SbdQO bCrY7gx3KNBErPMiKJ2OTwZvQ2U7MQO6LLcu9n+Ku2AJVvTrBRDkF3/85mQ7NgtwKIS1 kKdl2WRlzAyhTAbpy6wqVyz07vJe0LV27fJIbYBaBRLrcKR/rq2YFQkA2QgOO9OlKD7n jGO5wzHGPL2V60D9ZwL2iYgKpNXgmCaqzYd4daZlxpKX1hpu33Kz+87Y26jBnSEChUMI bo9w== X-Gm-Message-State: AOAM530GU8O8D5V3SuycLIUNKN+7jSpbL3a2AUHICcs7eemx0ldabx/7 l6Px4SUQ34/QdELdxk7pw6RRCmFYdIm/7yWnWpkEIW+Nshs7yA== X-Google-Smtp-Source: ABdhPJyPh2THvu1MeKfURZfK5wzohmnf+NCNLuYRO7jO7xnnYTy9KTM9xfgqjOPzLmBgoDz7V4eS7gacH1mmUUbbu3g= X-Received: by 2002:a25:7a03:: with SMTP id v3mr29208627ybc.202.1630391985881; Mon, 30 Aug 2021 23:39:45 -0700 (PDT) MIME-Version: 1.0 From: =?UTF-8?Q?Marc_Nieper=2DWi=C3=9Fkirchen?= Date: Tue, 31 Aug 2021 08:39:35 +0200 Message-ID: Subject: Global register variables To: jit@gcc.gnu.org X-Spam-Status: No, score=0.2 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 autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.29 X-BeenThere: jit@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Jit mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Aug 2021 06:39:57 -0000 Does libgccjit support GCC's global register variables ([1])? If not, could we expect them to be included? One major use case of libgccjit seems to be JIT compilation of some virtual machine bytecode and virtual machines usually need a number of global variables (like some virtual stack pointer or heap pointer, etc.). It makes a lot of sense to hold them in global (callee-saved) registers. Marc -- [1] https://gcc.gnu.org/onlinedocs/gcc/Global-Register-Variables.html#Global-Register-Variables