Altera_Forum
Honored Contributor
15 years agoQuestions on program size in Nios II
Hi!
I'm learning Nios II with DE2 Development Board, and I made a very simple MCU in the SOPC Builder which contains a Nios II processor(standard) with reset vector = epcs_controller and exception vector = sram, a jtag_uart, three bidirectional I/O, an interval timer, a sram controller and a epcs_controller. The SOPC was generated successfully. Then I write C code in Nios II IDE. After building project, I found program size(code + initialized data) is high up to 58KBytes.I used to develop Atmel AVR MCU, I wrote thousands of lines of codes in a project but program size is less than 32KBytes. However, I just set timer registers, interruption registers and set IO output as high or low and so on in the Nios II, and the code is less than 200 lines. Why so little codes take up so big size in Nios II?