On Jul 23 21:23, Angelo Graziosi wrote:
> Corinna Vinschen wrote:
> >The default for native Windows applications is the small code model
> >[...]
> >Therefore my
> >collegue Kai Tietz provided GCC with implementations of a medium and
> >large code model
> 
> Gulp! Seems to re-read the Borland C++/TPascal manuals at the beginning of
> the 1990s... only the huge model is missed (and tiny, obviously..)

It's not that bad.  It's just about using a trampolin for symbols not
marked as dllimport/dllexport.  The medium and large code models allow
to drop the requirement to mark symbols as DLL symbols and still link
the executable correctly, even in the big 44 bit address room of x86_64.
The problem stems from the fact that the x86_64 64 bit instruction set
doesn't know relative jumps with more than 31 bit displacement.

The only really bad problem is, sombody has to create a patch for clang...


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

Attachment: pgpf7gQb7xLho.pgp
Description: PGP signature

Reply via email to