Re: Properly building newlib to install spec files

Jozef Lawrynowicz <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <20191106122506.0353cee5@jozef-kubuntu>
On Wed, 6 Nov 2019 11:07:53 +0000
Jozef Lawrynowicz <[email protected]> wrote:
.. snip ..
> 
> As you discovered, nosys still exists but it is enabled by using the GCC -msim
> option. The real use case for stubbing out system calls is when running programs
> in the simulator.

Whoops, that should actually say that nosys (libnosys.a) is used when running on
real hardware (the default), whilst a separate simulator library (libsim.a) is
used when -msim is passed to GCC.

Jozef

> 
> In the default configuration which assumes the program will run on real
> hardware, most system calls (except write() and unlink()) are stubbed out
> and just loop forever. So there will be very little (if any) code size
> bloat from using the default configuration over -msim.
> 
> When TI CIO functionality is added to the other syscalls, there could be a
> use case to provide an option (--specs or otherwise) which enables them to be
> stubbed out again.
> 
> Hope this helps,
> Jozef
> 
> > 
> > Again, thank you.
> > 
> > Cheers,
> > Orlando.
> > 
> > [1] ftp://sourceware.org/pub/newlib/index.html
> >   
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.