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.

1,527件の閲覧回数
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 返答(返信)

1,502件の閲覧回数
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 件の賞賛
返信

1,413件の閲覧回数
steven_zhang
Contributor V

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

0 件の賞賛
返信