On Wed, Apr 23, 2014 at 9:57 AM, Grant Edwards
<grant.b.edwa...@gmail.com> wrote:
> On 2014-04-23, Peter Bigot <big...@acm.org> wrote:
>
>> Again: whatever the environment wants it to do.  In my case, I'm
>> using printf(3c) in my code, and I want it to output to one of the
>> UARTs, which newlib accommodates by using write(2) to descriptor 1,
>> just like any other standard C library.
>>
>> This works because I supply a _write() function that does that.
>
> But it's not called like a normal C function, it goes through some
> sort of syscall interface so you don't actually link your _write()
> function with newlib?

See http://pabigot.github.io/bspacm/newlib.html#newlib_sys

>
>> Or maybe it sends the data to an LCD. Maybe exit() starts blinking a
>> red LED if the return code isn't zero. Whatever any of the system
>> functions do, it's my choice, and I like that newlib allows me that
>> control.
>
> Hmm. Is there an option to build a non-hosted version of newlib which
> doesn't assume any underlying "OS support".

Yes, also described at that link, and possibly at the gatliff link I
gave earlier.

Peter

>
> --
> Grant Edwards               grant.b.edwards        Yow! Is it 1974?  What's
>                                   at               for SUPPER?  Can I spend
>                               gmail.com            my COLLEGE FUND in one
>                                                    wild afternoon??
>
>
> ------------------------------------------------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform
> http://p.sf.net/sfu/ExoPlatform
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users

------------------------------------------------------------------------------
Start Your Social Network Today - Download eXo Platform
Build your Enterprise Intranet with eXo Platform Software
Java Based Open Source Intranet - Social, Extensible, Cloud Ready
Get Started Now And Turn Your Intranet Into A Collaboration Platform
http://p.sf.net/sfu/ExoPlatform
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to