public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Corinna Vinschen <vinschen@redhat.com>
To: Ignacio Vargas <ignacio.vargas@rapidsilicon.com>
Cc: newlib@sourceware.org
Subject: Re: Possible argp implementation questions regarding the use of <stdio.h>
Date: Fri, 3 Feb 2023 13:09:43 +0100	[thread overview]
Message-ID: <Y9z5h6cmzRin1hLx@calimero.vinschen.de> (raw)
In-Reply-To: <a76814f8-724b-2b39-2801-bc166b2f8d06@rapidsilicon.com>

On Feb  2 15:41, Ignacio Vargas wrote:
> As I mentioned when I e-mailed from outside the mailing list a while ago,
> I'm working on an very stripped down argp baremetal implementation that I
> would like to contribute to newlib at some point. As Corinna pointed out I
> don't want it to be GPLed so I've been writing an implementation from
> scratch that doesn't even depend on getopt.
> 
> I have a question regarding the use (or lack thereof) of <stdio.h>.
> 
> Context: For the target we support we can't use newlib's printing functions
> because we can't provide an implementation of all the required OS
> subroutines. This is due to working on a very limited target. This is all to
> say, our stripped down argp can't include <stdio.h>, and in the future I
> would like to contribute it to newlib in a way that doesn't require
> including <stdio.h>.
> 
> Question: From what I've been told by colleagues, newlib aims to be a very
> "drop-in" replacement for a regular stdlib. So I'm asking if it would be an
> issue to contribute my argp version that:
> 1. Already deviates from glibc's in the fact that it's a stripped-down
> version that doesn't implement all the features. And also deviates in small
> ways in certain features it does support.
> 
> 2. Has an additional mechanism for the user to specify which printing
> function to use, instead of just including <stdio.h> and using the provided
> printing functions. With the goal of having wider support across baremetal
> targets.

Rather than just theorizing about it, what about just sending the
patchset in git format-patch --cover-letter style, so we can discuss
this over the living code?


Corinna


      reply	other threads:[~2023-02-03 12:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-02 21:41 Ignacio Vargas
2023-02-03 12:09 ` Corinna Vinschen [this message]

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=Y9z5h6cmzRin1hLx@calimero.vinschen.de \
    --to=vinschen@redhat.com \
    --cc=ignacio.vargas@rapidsilicon.com \
    --cc=newlib@sourceware.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).