Altera_Forum
Honored Contributor
16 years agoOptimizing code for II/e vs II/f
Hi,
I noticed when I compiled for II/e that it's putting a bunch of multiply instructions in the assembler, where I would not normally want them. Example: Subtracting two pointer ended up using a multiply. Obviously, I want not multiplies generated in the assembler for II/e. Does the compiler not receive a hint as to whether it's compiling for II/e vs II/f? Can I tell to that I want to compile for II/e? Can I tell it not to use multiplies? I know they're basically using GCC, which has a -b and -m option, but I'm not sure they're supported for the Nios II cross-compiled tools. Thanks, Peter