Forum Discussion
Altera_Forum
Honored Contributor
20 years agoIf you follow the instructions in the tutorial you can look at the command line options
COMMAND_PREFIX := nios2-elf- The CFLAGS will vary depending upon your hardware these will work for a Cyclone part CFLAGS = -g -O3 -ffunction-sections -fdata-sections -fno-rtti -fno-exceptions -fvtable-gc -DSYSTEM_BUS_WIDTH=32 -mhw-mul -mno-hw-mulx -mno-hw-div If you have a Stratix part or a hardware multiply/divide unit you may wish to change these to use the multiply unit and generate faster code nios2-elf-gcc --help will provide more information on what the options mean