> 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