how to set the float to single while compiling a S32DS for S32 project.

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

how to set the float to single while compiling a S32DS for S32 project.

578 Views
steven_zhang
Contributor V

my costumer genearted source code with matlab , the GCC compiles the float point constant as double. they wants the gcc compile the float point constants as single .i  chose the single precision contants as blew ,it desn‘t work,can anyone give me any suggestion for it.

steven_zhang_0-1669361683226.png

 

0 Kudos
2 Replies

553 Views
jiri_kral
NXP Employee
NXP Employee

Hi,

what's the target MCU and how are the float constant defined - it is something like const float f1=1.123456?

0 Kudos

464 Views
steven_zhang
Contributor V

 reason found. the thrid souce code generator difined the parameter for the function as double. 

0 Kudos