GMP 5.0.5 build fails with tcc due to x86_64 asm (unknown register...)

Vincent Lefevre vincent at
Wed Jun 20 00:00:34 CEST 2012

On 2012-06-19 23:36:49 +0200, Torbjorn Granlund wrote:
> What does the dear POSIX documents tell about translating assembly code
> to object code?  Oh, they don't define that?  Oppsie, we must remove all
> assembly code from GMP right away...!

Not to remove it, but to make it *optional*, i.e. to have a fallback
in C.

> My approach is to make things work.  Standards help, but they are not
> scripture.  It is like the earth and maps.  Maps help, but I tend to
> swerve a hill even if it not on the map.

Here it doesn't work with tcc. If you had a fallback in C, things
would be fine.

Vincent Lefèvre <vincent at> - Web: <>
100% accessible validated (X)HTML - Blog: <>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)

More information about the gmp-discuss mailing list