Tags: arm-none-linux-gnueabi-gcc, calculation, compilation, compiling, cross, exe, floating, forarm, monkey, mozilla, point, software, spider, sucessfully

Cross compilation Spider monkey for arm-none-linux-gnueabi-gcc :floating point calculation

On Software » Mozilla

1,285 words with 0 Comments; publish: Tue, 06 May 2008 20:10:00 GMT; (400780.27, « »)

Hi ,

I am cross compiling Spider Monkey using arm-none-linux-gnueabi-gcc.

I have done cross compilation sucessfully i have got js as exe for


But i am getting problems with floating point calculations such as

dividing the two floating point values.It started giving negative


I have downloaded js 1-6.tar.gz from mozilla website.

I have cross compiled by using the following steps.

1) cd mozilla/js/src

2) make -f Makefile.ref CC=arm-none-linux-gnueabi-gcc LD=arm-none-


3) copy jscpucfg to the target, run them there and it has generated

the jsautocfg.h then i copied the jsautocfg.h back to the development


4) repeat the make command, which now runs successfully to


My Doubts:

1)Js 1-6.tar.gz doesnot contains jskwgen.c.I have not used jskwgen.

why it is used for ?

2)why arm-softfloat-linux-gnu-gcc is used any specific purpose for

floating point?

3)Shall i need to enable some flag (such as mfloat) while cross

compiling for floating point explictily?

4) Any simple fix is there fro my problem?

Please help me to solve this issue.

dev-tech-js-engine mailing list

dev-tech-js-engine (AT) lists (DOT) mozilla.org

All Comments

Leave a comment...