Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

printf and %f ????

Altera_Forum
Honored Contributor II
992 Views

Hello, 

 

i have a very crazy problem. 

 

See the following sourcecode: 

----------------------------------------# include "system.h" 

 

int main (void) 

 

float c = -45.77; 

printf("test"); 

printf("Answer = %f", c); 

return 0; 

------------------------------------------- 

 

The Compiler-Output brakes after the first printf instruction. 

Everytime when i use %f to print a float, the program stops his execution. 

Why? 

 

Please help me. 

 

THANX. 

 

PS: i don´t use "small C" - library
0 Kudos
0 Replies
Reply