I wish to use extended precision in functions compiled by tcc during execution.
Unfortunately, it appears that for any functions compiled by tcc, sizeof (double) == sizeof (long double) - and I haven't got the slightest clue whether it's intended, if it's a bug or if I'm missing some flags.
Specifications:
tcc-compiled code:
char my_program[] =
"int GetLongDoubleSize(int n)\n"
"{\n"
" return sizeof(long double);\n" //returns 8
"}\n"
"int GetDoubleSize(int n)\n"
"{\n"
" return sizeof(double);\n" //returns 8
"}\n";
Output:----- tcc compiled 'char program':
Long Double size: 8
Double size: 8
----- gcc compiled functions:
gcc Long Double size: 12
gcc Double size: 8