Re: msp430-elf-gcc upcoming release

Peter Bigot <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <CAPOJ94MNkt9BFwaytKWB_sB0aqgysAW8FewQ=N9E0bH1kgrhOQ@mail.gmail.com>
On Wed, Apr 23, 2014 at 9:57 AM, Grant Edwards
<[email protected]> wrote:
> On 2014-04-23, Peter Bigot <[email protected]> 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
> [email protected]
> 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
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.