--- Quote Start ---
originally posted by rppolicy@Jan 14 2005, 09:33 AM
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;
printf("hello from nios ii!\n");
x = 1.2;
y = 3.5;
z = x + y;
printf("x+y = %.02lf\n", z);
z = x - y;
printf("x-y = %.02lf\n", z);
z = x * y;
printf("x*y = %.02lf\n", z);
z = x / y;
printf("x/y = %.02lf\n", z);
when all was compiled and linked with default options, the size was 61k. so i turned on the small c and reduce driver options in the system, and the code dropped to a waluping 18k! it looked supicious, so i looked up what you lose in the small c. floating point is not supported in printf. hum! why didn't the compiler/linker warn me. there were no errors or warnings with the above code + small c options. what exactly did the compiler generate? don't have a target to load it to yet, so i can't see what was generated. just curious. i am dissapointed that i was not warned about the no support of floating point in the printf. how many other things are hidden that we are not being warned about? thoughts....
rick --- Quote End ---
The NIOS doc does mention what is missing in the small lib!