Forum Discussion
Altera_Forum
Honored Contributor
14 years agoOptimize a single file in a project
What is the easiest way with NIOS II EDS 10.1sp1 to setup the auto-generated Makefile to optimize a single file? By default the project has optimization turned off, but I'd like to enable it on a si...
Altera_Forum
Honored Contributor
14 years agoAssuming you don't want to be writing your own makefiles I'm guessing this would work:
1) Compile the code you want optimized as a library with -O2/3 and other flags 2) Associate the compiled library to your project 3) Compile the entire project using -O0 There might be other ways to do this..... this seemed like the simplest way to me.