Forum Discussion
Altera_Forum
Honored Contributor
22 years agohow to reduce the size of nios soft core?
SOPC builder compiles some files automatically, such as pio_lcd16207.c, but i don't want to include this file and it isn't used, either. I want to cut this file to save LEs of FPGA after...
Altera_Forum
Honored Contributor
22 years agoDid you have that LCD core originally and take it out? If so did you also re-generate the NIOS (because what you are describbing shouldn't happen).
Like what was said before, the code will not affect you're resource size (LEs). Basically the hardware is generated first then you're software is built using the characteristics of the system itself (that's why I'm wondering if you re-generated the NIOS or not). To get extra optimization you can us the -O3 parameter for the build (if you build from the prompt that is, otherwise I'm not sure if there is any other way). By default the software builds using -O2 optimization, I haven't really noticed a difference between -O3 and -O2 but you might. So the first step is to go into the SOPC and take a look at what's a part of the system you are generating with the NIOS