Forum Discussion
Altera_Forum
Honored Contributor
21 years agoSmall C Lib
I was generating a small project in the IDE to give some benchmarks on code size for different compiler/linker options. The program was the hello_world + the following: double x, y, z; ...
Altera_Forum
Honored Contributor
21 years ago> compile up printf("Hello %d"); You will not find a compiler which points out
> that you're missing a parameter. If you find an example counter to this please > do point it out. Well ... actually ... nios2-elf-gcc (GCC) 3.3.3 (Altera Nios II 1.0 b316) is an example ... provided you use -Wall . But this is irrelevant. > Why didn't the compiler/linker warn me. There were no syntax errors ... and no missing references. The compiler and linker performed as expected. They can't catch what amounts to an empty implementation/missing feature in a runtime library ... ... if the return value from printf() is not <= 0 with a floating point conversion while using small lib ... that would be a problem/bug. Otherwise, you'll have to stick with the library that has the features you require. Best Regards, --Scott