[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Tinycc-devel] Set the stack size of an executable
From: |
grischka |
Subject: |
Re: [Tinycc-devel] Set the stack size of an executable |
Date: |
Thu, 14 Jul 2011 01:21:25 +0200 |
User-agent: |
Thunderbird 2.0.0.24 (Windows/20100228) |
Thomas Mertes wrote:
Great.
When will a precompiled Windows tcc with this feature be available?
Next release, planned in 1..2 months.
BTW: Is it intended to differ slightly from the option MinGW uses
for this purpose?
What? No. I was testing
-Wl,--stack=nnn
and
-Wl,--stack,nnn
with both tcc and gcc.
Under Windows I could not find prototypes, of fseek and ftell with
64 bit offset, in the header files. Competing compilers do not agree
in names for this functions and the 64 bit offset type:
MinGW uses: fseeko64, ftello64 and off64_t
MSVC and Borland use: _fseeki64, _ftelli64 and __int64
We have newer stdio.h from mingw with lots of such variants, but
anyway TCC relies on what is in msvcrt.dll.
msvcrt.dll (Vista/32 and Win7/64) has:
_fseeki64
fseek
ftell
SetFilePointer() and _get_osfhandle(fp->_file) may be useful for
coding up an ftell64 replacement.
--- grischka