ΣSigmaStudio Ask AI Русский Log in

how to configure "double" type into 64bits in compiler?

Processors & DSP ADIApproved Jan 8, 2021 00:00 1 replies Original on forum ↗
Subscribe
ADIApproved Question
Jan 8, 2021 00:00

Hi,

I defined a var into "double" type, but I checked with sizeof(var) to see only 32bit width, instead of 64btis width, how should I to configure? thanks.

ADIApproved Reply
Jan 22, 2021 00:00

Hi,

The default mode is -double-size-32(double is 32 bits). This can be changed using -double-size-64 (double is 64 bits) switches select the storage format that the compiler uses for type double as below

Project > Properties > C/C++ Build > Settings > Tool Settings > CrossCore SHARC/Blackfin C/C++ Compiler > Processor > Double size to the required value.

Please refer the attached screen shots.

Regards,
Anand Selvaraj.

double_32bit.png
double_32bit.png
double_64bit.png
double_64bit.png