Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
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.

Speed of printf

Altera_Forum
Honored Contributor II
1,291 Views

Whats the speed in kbit/s for the printf Command? I am using a Stratix III Board(NIOS II CPU).

0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
595 Views

The question is unanswerable as it depends on too many outside factors such as: 

1 - Processor speed 

2 - What is the STDOUT device and it's speed 

3 - What other things is the processor busy doing. 

 

Even knowing those numbers nobody is going to be able to estimate it for you. You'll just need to run some tests and measure it for your system. 

 

Relatively speaking, printf is slow. 

 

Jake
0 Kudos
Altera_Forum
Honored Contributor II
595 Views

The next problem is (maybe that isnt problem): function printf take about 50kB of memory. So i use puts function and numbers retype to string. The final code is smaller. Under 20kB. 

 

VK
0 Kudos
Reply