This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: some V850 questions, some general questions


> I tried to tell gcc this with some linker options:

Try using a linker script instead.  Use "v850-unknown-elf-ld
--verbose" to get a copy of the built-in script, then add memory
regions to it and assign sections to regions as appropriate.

> newlib provides a malloc().  How do i tell newlib() about the memory
> and which part it can use for malloc() ?

Normally, you would provide an sbrk() for malloc to use.  Look in
src/libgloss for examples of how various CPUs solve these problems.

> How do i tell newlib how and where to handle stdin/stdout/stderr?
> If my program does a printf(), where do the characters go?  And how
> can i redirect them to a place i want them to be?

Normally, you would provide a write() for newlib to use for all that.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]