Hi,
we encounter a strange behavior with tcc on NT 64bits.
The size of size_t is 4 and not 8. We're using the last version
available
(https://download.savannah.gnu.org/releases/tinycc/tcc-0.9.26-win64-bin.zip).
After exploration, we noticed that the file "_mingw.h" is included,
which define size_t as unsigned long int (hence 4).
Why is "_mingw.h" included? Is it normal? And is it normal that size_t
is 4 and not 8?
I join the test file we use (test.c) and here the output of the test
program:
$ tcc -o test.exe test.c && ./test.exe
size_t 4
int * 8
void * 8
long int 4
long long int 8
unsigned long long int 8
Cordialement/Regards.
--
Clément Franchini
#include <stdio.h>
int main (void) {
printf ("size_t %d\n", sizeof (size_t));
printf ("int * %d\n", sizeof (int *));
printf ("void * %d\n", sizeof (void *));
printf ("long int %d\n", sizeof (long int));
printf ("long long int %d\n", sizeof (long long int));
printf ("unsigned long long int %d\n", sizeof (unsigned long long int));
return 0;
}
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel