[vmips] Can vmips be used with cygwin?
Brian R. Gaeke
brg at dgate.ORG
Fri Jan 7 00:03:47 CST 2005
On Fri, Jan 07, 2005 at 03:39:05PM +1300, Yoong Li Hsien wrote:
> Thanks so much for your help. I've some other questions. I understand that vmips
> supports a SPIM-compatible console device. Would i be able to use
> glibc/uClibc's stdio functions [eg. printf(), getc(), etc.] to work with the
> console?
I suppose it might be possible, though I've never tried it. uClibc is not
too hard to compile, but I've never gotten glibc to compile. uClibc ordinarily
wants to use the Linux syscalls to perform read() and write() operations, so
you would have to change that. You might be able to make it use the routines
in vmips/sample_code/xmboot/serial.c instead.
Alternatively, there's a small number of stdio-like routines in
vmips/sample_code/xmboot/lib.c which you can use. They don't exactly
behave like stdio (no line buffering, for example) but you can use them
to run some simple programs. Look at vmips/sample_code/benchmarks for examples.
> Also, do you know where i may get the necessary glibc/uClibc packages
> that will work with vmips? Will these packages be the same for linux and
> cygwin?
You'll have to compile uClibc yourself from source. I don't currently
distribute uClibc binaries.
-Brian
More information about the Vmips
mailing list