Altera_Forum
Honored Contributor
16 years agoNios code size too big
Hi,
I am developing a new Nios project that I am trying to squeeze into a small code space. We want to run it in a Cyclone III part without any external RAM. It will load from an EPCS device into the RAM in the FPGA and execute from there. I think I can get my code into about 16K. The trouble is that even if I have project with nothing but a while(1) loop there is already about 16K. It would seem a bunch of Altera components are loaded. I probably need some of them like the JTAG UART controller but it seems like a lot to me. Why is it loading all these components? Do they get loaded based on what is defined in the system.h file? How can I shrink this footprint? Thanks. Mike