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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

877 次查看
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 项奖励
回复
2 回复数

852 次查看
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 项奖励
回复

763 次查看
steven_zhang
Contributor V

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

0 项奖励
回复