GMP support thumb interworking on ARM?

Jason Ho Jason.Ho at
Fri May 28 04:35:17 CEST 2010

Actaully, I am working on a platform with information below:
- Cygwin, gcc 4.3.4
- ./configure --host=arm CC=arm-unknown-linux-gnu-gcc AS=arm-unknown-linux-gnu-as AR=arm-unknown-linux-gnu-ar LD=arm-unknown-linux-gnu-ld --disable-shared --prefix=/usr/local/mygmp
- The compiling of application on my platform requires: 
  CFLAGS=-c -std=gnu89 -Os -Wall -msoft-float -mthumb -mthumb-interwork -mcpu=arm7tdmi

My questions are:
1. Any support for compiling GMP into thumb?
2. How can I build the gmp lib to use software floating point?


-----Original Message-----
From: tg at [mailto:tg at] 
Sent: Thursday, May 27, 2010 6:20 PM
To: Jason Ho
Cc: gmp-bugs at
Subject: Re: GMP support thumb interworking on ARM?

"Jason Ho" <Jason.Ho at> writes:

  Done searching on the old messages, it seems that GMP doesn't support
  thumb interworking on the ARM platform. Any hope to get it done now?

The GMP code is ARM, not thumb.  Cannot one just call it like any other ARM module?

Or are you asking for support for compiling GMP into thumb insns?


More information about the gmp-bugs mailing list