ARM Technical Support Knowledge Articles

MATH FUNCTIONS

Applies to: C51 C Compiler

Answer

QUESTION

Can the C51 compiler compute logarithmic functions e.g.:

a * log(x) + b * pow(log(x), 2)

or square root functions e.g.:

pow(ax, 0.5) + pow(bx, 1.5) + pow(cx, 2.5)

How can I detemine the execution time for these functions?

ANSWER

Yes. The C51 compiler supports both log() and pow() functions.

You may use the Execution Profiler or the built-in Logic Analyzer in the simulator to display execution times for these functions.

MORE INFORMATION

Article last edited on: 2006-10-24 11:16:58

Rate this article

[Bad]
|
|
[Good]
Disagree? Move your mouse over the bar and click

Did you find this article helpful? Yes No

How can we improve this article?

Link to this article
Copyright © 2011 ARM Limited. All rights reserved. External (Open), Non-Confidential