Igor Marnat wrote:
I'm building GPC for arm-elf target. In the source directory in files p/rts/configure.in and rts.h options "_LARGEFILE64_SOURCE" and "_FILE_OFFSET_BITS 64" are hardcoded. Is it really necessary? Is it possible to build GPC without large file support as it doesn't make sense for embedded platforms? It doesn't depend of version of GPC sources.
The general idea is to have as few artifical restrictions as possible in Pascal. In C, they need to distinguish between 32 bit and 64 bit routines precisely, because routines are sometimes called without prototypes etc.
In Pascal, we can assume that type sizes are always converted automatically when necessary, so we can (and should IMHO) provide the least restrictive implementation. I.e., if the system allows for 64 bit files, we should simply use them, without any additional requirements on the user.
To put the question the other way around, if it doesn't make sense to use large files on these platforms and causes problems (does it?), then why don't the system headers simply ignore it?
Frank