This is clearly a bug from this build.If you compile native x86/x64 windows 
binary from mob it gives 
you:size_t                 8
int *                  8
void *                 8
long int               4
long long int          8
unsigned long long int 8



 Le : 01 juin 2017 à 17:28 (GMT +02:00)
De : "Clément Franchini" <[email protected]>
À : "[email protected]" <[email protected]>
Objet : [Tinycc-devel] tcc on NT: sizeof (size_t)


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
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to