tinycc-devel
[Top][All Lists]
Advanced

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

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


From: Clément Franchini
Subject: [Tinycc-devel] tcc on NT: sizeof (size_t)
Date: Thu, 1 Jun 2017 15:29:14 +0200
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

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

Attachment: test.c
Description: Text document


reply via email to

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