tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] tcc on NT: sizeof (size_t)


From: Christian JULLIEN
Subject: Re: [Tinycc-devel] tcc on NT: sizeof (size_t)
Date: Thu, 1 Jun 2017 18:11:40 +0200 (CEST)

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" <address@hidden>
À : "address@hidden" <address@hidden>
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
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]