Altera_Forum
Honored Contributor
16 years agoPorting SoftFloat / TestFloat to the NiosII
Hi,
I have a slight problem porting the SoftFloat Library from J.Hauser and its testing-application to the nios2. When I compile the code using the nios2-elf-gcc on the console, everything compiles fine, however if I load the code into the Nios2-IDE, it complains about a lot of strange things, like it can't resolve the typedefs etc. :/ I even tried to put everything in one file - but even this fails - the linker complains about undefined references (to functions which are declared in the c-file!) I really don't know how to proceed - it would be really nice if someone could help me get this app ported. You can find the sources at: http://www.jhauser.us/arithmetic/softfloat.html btw.: The reason I want to use this particular softfloat library is the TestFloat program from the same author, which I would like to use to verify my own floating point unit. Help is really appreciated, thanks Pete