Forum Discussion
Altera_Forum
Honored Contributor
21 years agoNios without SystemLibrary
Hi, I am working for a shool projet on Nios II. I was wondering if it was possible to compile and link a program for Nios II without using the SystemLibrary at all. Meaning make the smallest pr...
Altera_Forum
Honored Contributor
21 years agoHi thanks for your answer,
Actually I was asked to present the project with full asssembly program for Nios II, and without linking SystemLib. I believe it's a pain, since all interruption layer is defined there (alt_exception, init with crt0, and all others..). In the other hand, the program would be much smaller, and the Nios would boot much faster, so it's interesting. Since a multi-core platform sustain the code, one Nios can keep a SystemLib, whereas the second one can run an optimize way. So I think it makes sense. I just checked out hello_alt_main.c (Free Standing version), It can be interesting (maybe a compromise between full systemLib and no systemlib). Now I am writing the assembly program for the no-system-lib Nios, so still busy. But I am trying to find out a way not to use that SystemLib. If I want to remove the sysLib, Do you think I should make a copy of the linking script, and just put everything I need to link inside?? (Rick> Im using a small fpga, Stratix1-F780C6.. I think it's a 10k gates , I am not following news about up3 sorry ) Sylvain (who hopes to get a good grade for his last year project )