Forum Discussion
Altera_Forum
Honored Contributor
20 years agoporting newlib
I downloaded newlib 1.14 and got it to compile but now I'm wondering how the NIOS build system decides where to get the libraries during linking. For now I'm just copying my rebuilt libc.a ov...
Altera_Forum
Honored Contributor
20 years agoIt started out with a stack problem under uC/OS. I was trying to find out why printf consumes such an obscene amount of stack but when I stepped through it in the debugger I kept having problems with the source and assembly lining up so I decided to rebuild the lib from the existing source. After doing that I could debug ok and found that, yes, printf is a real stack hog.
At that point I thought it might be worthwhile to get the latest newlib working to see if a) the printf stuff was modified and http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif be able to get support from the newlib folks. I also really want to understand how the whole NIOS toolchain works so I can upgrade/replace bits and pieces of it. One of my other quests is to upgrade Eclipse to the latest-greatest so I can use the VSS plugin (then again, I'd really like to dump VSS and go to CVS but that's another story). Andrew