How to use mathematicals functions and memory allocation ?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to use mathematicals functions and memory allocation ?

2,376 Views
GuyRoux
Contributor I

Hello,

 

I use CodeWarrior for DSC56800E v8.3 and CodeWarrior IDE version 5.9.0 Build 4713. I travel under Windows 32 bits.

 

I build my project with C language.

 

I would know to use the functions as cos, sin, tan, ... . I already try librairies "math.h" and "cmath" but it's not good.

 

Moreover, I would do an allocation memory, I try to use the function "malloc". Somebody say me that existed a function to remplace "malloc".

 

Best regards,

 

Guy Roux

Labels (1)
Tags (1)
0 Kudos
Reply
4 Replies

554 Views
J2MEJediMaster
Specialist I

For trigonometric functions, you also need to link in the library with these functions. The default library is a stripped down version that lacxks these functions in order to reduce the program's memory footprint. Check out the Targeting ColdFire manual for information on which libraries to link into your program. The manual is located in the Help folder of the CodeWarrior installation folder.

 

---Tom

0 Kudos
Reply

554 Views
GuyRoux
Contributor I

Thank you for your response !

 

Why do you talk about ColdFire I work DSP 56f807

 

you said :

"The default library is a stripped down version that lacxks these functions in order to reduce the program's memory footprint"

 

I don't know what do you mean ? And what I am suppose to do to link the librairy 

 

Best regards !

0 Kudos
Reply

554 Views
J2MEJediMaster
Specialist I

Sorry. I had ColdFire on the brain when I wrote that. For memory configuration information, you need to look at the 568000/E Targeting Manual. For the trigonometric functions, I do not see any sign of them in the two libraries mentioned in this manual, one which is a stripped down version (minimal I/O) and the complete version (complete I/O capabilities). I think you need to file a service request for that.

 

---Tom

0 Kudos
Reply

554 Views
giacomopetrini
Contributor IV

Hi,

there should be a library with trigonometric among aother thing in the resources for DSP56xxx....

...fast check...

there: http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=FSLESL&fsrch=1

 

the name is FSLESL.

 

Hope this helps

 

Bye Jack

0 Kudos
Reply