From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-x231.google.com (mail-lj1-x231.google.com [IPv6:2a00:1450:4864:20::231]) by sourceware.org (Postfix) with ESMTPS id 514E13858D20 for ; Mon, 8 Apr 2024 14:00:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 514E13858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 514E13858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::231 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712584855; cv=none; b=GfGSU2WGZ7vRqz979dS3Rv4b4q0CHJM+z8w6ppyi367cNqAoMJk7rSiWgq9HGnvGO0rpLB/7ijIzUOHlJZQaPToKbmTTjJmdEuVIOEypMl0MSUKeCdDUHElrvx3JmaF4C9lbcd0Vv5+nPx23FdlRD+UGHqrMByPO5gfS3ZSvh3c= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712584855; c=relaxed/simple; bh=IkCv1yec4eBT1S9Dqg+pnVKksyNSizBRJXoX6uhPX1Q=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=VzWnX+c/5LLtlbklKWKGCN2evMspX9wq9m56AeCTYIHyCUprNrixvMkAmB8y2bRXxCJfkzNzh/axwOe/5EE/1aczTIjvs/w9aYqU3gshNv7pa0HQ3ZSrvHt8mGihtIwTrKsjeWRUOCs0Npp+3i1KzKKZO7lHUja3bEj88k4cx3k= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-lj1-x231.google.com with SMTP id 38308e7fff4ca-2d485886545so79096241fa.2 for ; Mon, 08 Apr 2024 07:00:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712584852; x=1713189652; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=IkCv1yec4eBT1S9Dqg+pnVKksyNSizBRJXoX6uhPX1Q=; b=fY8swJkvVlV1zkgPU6U/77FitME5u3/OoM4KKKBX7H/M9t8ITz/mias3LLKuUyJTaS 6h0Lq0VmBVXE3YCBXiBB7R3ocFpzd1l7YTRz+y0lAIZHKWsHx/sz9zIa7NruB/UmyEy6 S7vVOL8ebOcmhaoH2f4JzFggpfnGmoIlexRhacDjgxm6M7LqiMLHuvQnZi6dwQJUs2PT fGuci9Gk2XC3SwU3f9kzhmUdZIJnQ1k1t+nsAbHiB04s89oM5kOL7hqRQc7Ra29adpEJ /j+Ic9sM5LbLPODx+BRhmDG2FnBTxwbWzCuzlfgEYDqaXPEkJEXB+MaSZojoTg+6J0cV O2/w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712584852; x=1713189652; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IkCv1yec4eBT1S9Dqg+pnVKksyNSizBRJXoX6uhPX1Q=; b=bdq8vuo4g8cGAMGgEM9/dvnqwh1PXnOckU8T2m+EOiMG5SwCZAm9Pqn2RWGmEwaZTb /n3fACMjdX2XJ9zrbs5TJd+H+EjKd2ss6cxA4r+98rDfcw0aI0W+xMIpz5fAYQnl4dE/ dv4sVpCqOKbzhlCxGcn8jqpQmBh+JoSdjctG5VhIEOP0OVAZrZ/dGHw4KAck9LlYfTEa APsbD4T+3OmYyotBq38ZFC8F8quPIo+OwDcMeqS7T2xx6JuBUqPH4KyXQr683ZtEUVqg KBnkZ1MEZlIYfL8N1beAio1vtgxK3JoRsENdii/NnnUIOIryGjjUiG07aoJSDTt6yTSb uxKA== X-Gm-Message-State: AOJu0YzkQsCef6WqgFDo1UEEHRT7N4vxM4gI3yNA4zSFz3gZUlTyTNum wY7m6iqlPc/WEucztrPEm2zF46dYuds02PUTKY6BpMOOcYNEPCJ2vLyEqz/+VHfGyBTlxszZytQ mR7t+H2vivsWMBRvRqpkHg1bUGsk= X-Google-Smtp-Source: AGHT+IGe6p9kUs3e3KkHtMyA4wfWzD62iqjPlR9bGH3D4Z+PLOGx9DUvPQY6YdgVLkSUcvR+VNRULiAsA92StnsQI2s= X-Received: by 2002:a2e:9887:0:b0:2d8:5af9:90c5 with SMTP id b7-20020a2e9887000000b002d85af990c5mr7834967ljj.39.1712584851357; Mon, 08 Apr 2024 07:00:51 -0700 (PDT) MIME-Version: 1.0 References: <2852e1ff0081b5fbc3db1c3f1b627e3e@gmail.com> In-Reply-To: <2852e1ff0081b5fbc3db1c3f1b627e3e@gmail.com> From: Jonathan Wakely Date: Mon, 8 Apr 2024 15:00:37 +0100 Message-ID: Subject: Re: Re: [RFC] Linux system call builtins To: Matheus Afonso Martins Moreira Cc: "gcc@gcc.gnu.org" Content-Type: multipart/alternative; boundary="000000000000b68d5b0615963bd6" X-Spam-Status: No, score=-0.3 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 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: --000000000000b68d5b0615963bd6 Content-Type: text/plain; charset="UTF-8" On Mon, 8 Apr 2024, 13:00 Matheus Afonso Martins Moreira via Gcc, < gcc@gcc.gnu.org> wrote: > > Compiler support for system calls help by eliminating the need for the > system call stub functions traditionally provided by these C libraries. > There's no need to link against the C libraries just for that anymore > and there's also no need to implement it ourselves since the compiler > provides it. The result is it makes it easier to develop freestanding > software targeting Linux. > It means you don't need newlib just for the syscall function, but then you would also need to implement memcpy, etc. for yourself. Obviously some bare metal code needs to do that anyway, but that wouldn't be using syscalls either. This isn't my field so maybe I'm totally wrong, but the use case seems like a niche within a niche, but with a non-zero maintenance burden for GCC. --000000000000b68d5b0615963bd6--