[Efi332] Standard GNU C library for CYGWIN
David Eicher
sailors3
Sat Jul 23 02:21:51 UTC 2005
Thanks Gunter, appreciate the help.
Yep, I believe I'm dealing with the naked HW. But...., I am using the
Quickstart API, so I believe I need to use that convention for accessing the
HW.
I believe I see a path to go down here to get newlib to work for me. I'll
head down that path and see how far I can get.
Thanks much,
Dave
-----Original Message-----
From: efi332-bounces at diy-efi.org [mailto:efi332-bounces at diy-efi.org] On
Behalf Of Gunter Magin
Sent: Friday, July 22, 2005 6:02 AM
To: efi332 at diy-efi.org
Subject: Re: [Efi332] Standard GNU C library for CYGWIN
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
_______________________________________________
Efi332 mailing list
Efi332 at diy-efi.org
http://lists.diy-efi.org/mailman/listinfo/efi332
More information about the Efi332
mailing list