public inbox for newlib@sourceware.org
 help / color / mirror / Atom feed
From: Ignacio Vargas <ignacio.vargas@rapidsilicon.com>
To: newlib@sourceware.org
Subject: Possible argp implementation questions regarding the use of <stdio.h>
Date: Thu, 2 Feb 2023 15:41:48 -0600	[thread overview]
Message-ID: <a76814f8-724b-2b39-2801-bc166b2f8d06@rapidsilicon.com> (raw)

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.


Best regards,

Ignacio Vargas


             reply	other threads:[~2023-02-02 21:41 UTC|newest]

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

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=a76814f8-724b-2b39-2801-bc166b2f8d06@rapidsilicon.com \
    --to=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).