Time functions in newlib

Lewin A.R.W. Edwards ledwards@digi-frame.com
Wed Jul 11 13:06:00 GMT 2001

Hi Jeff,

> > >For clock(),you need a libgloss function:times(),
> >
> > Libgloss isn't supported on arm-unknown-elf, or at least the newlib
>will find the syscalls defined in newlib/libc/sys/arm/syscalls.c.  There 
>is an _times routine
>supplied which uses an SWI call.

Splendid!! Thanks a lot for this information, saved me considerable 
tracking down. Looks like I will have to modify that sbrk a bit, because my 
stack lives in a different section of RAM, which actually lies below the 
end of BSS.

-- Lewin A.R.W. Edwards
Embedded Engineer, Digi-Frame Inc.
Work: http://www.digi-frame.com/
Tel (914) 937-4090 9am-6:30pm M-F ET
Personal: http://www.larwe.com/ http://www.zws.com/

More information about the Newlib mailing list