Re: msp430-elf-gcc upcoming release

Grant Edwards <[email protected]>
Newsgroups gmane.comp.hardware.texas-instruments.msp430.gcc.user
Message-ID <[email protected]>
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?

> 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".

-- 
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
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.