[Efi332] Standard GNU C library for CYGWIN

Gunter Magin gm
Fri Jul 22 14:01:34 UTC 2005


On Fri, Jul 22, 2005 at 05:21:31AM -0700, David Eicher wrote:
> Has anyone built a standard C library for the GNU C running on cygwin? I'm
> looking for the prinf( ) function (and others), that have been re-directed
> to the SCI serial interface for MPC555/565.

The "standard C library" you are looking for is newlib, and I vaguely
remember you have been checking that option a couple weeks ago.

What you need is libgloss, which some people call board
support package. Try to understand the files and concepts in
newlib-x.xx.x/libgloss/rs6000. Some of the supported boards have a
bootloader monitor, where the application jumps in for UART service via
a SW trap interface (you probably don't have that). Other systems rely
on an underlying operating system, more precisely on the BSP of that
OpSys.

Probably your system isn't supported directly, and you are operating on
the naked HW, so you have to supply your own libgloss by implementing
read(), write(), open(), sbrk() and friends, by just using the HW.
You may find an pure SCI driver or fragments of that driver also in the
68k libgloss tree, e.g. for the 6833x.

For printf you probably only need to populate write(), while other
functions can be stubbed. The linker will tell you by its error messages 
what is really needed.

gm




More information about the Efi332 mailing list