Skip to main content

supporting hardware floating point

1 reply [Last post]
sandykhan
Offline
Joined: 2008-01-15

Hi,
I am building cldc for a target which has a floating point co-processor. So, my intention is to utilize that co-processor to perform floating point operations. That's why, I have set ENABLE_SOFT_FLOAT=false while building cldc. When I run that vm on target platform, some floating point operations throw exceptions and some give wrong results. After that, I tried to build by setting ENABLE_SOFT_FLOAT=false and ENABLE_ARM_VFP=true, but now some errors are appearing during build process.

These errors look like:

... _MergedSrc005.cpp
... _MergedSrc006.cpp
../../romgen/app/romgen +GenerateOopMaps
Generating oopmaps
... OopMaps.cpp
../../loopgen/app/loopgen -generate +GenerateDebugAssembly +GenerateGNUCode
Generating debug assembly code: ... Interpreter_arm.s
ASMing Interpreter_arm.s
/home/prakash/mr2build/cldc/linux_arm/target/debug/Interpreter_arm.s: Assembler messages:
/home/prakash/mr2build/cldc/linux_arm/target/debug/Interpreter_arm.s:4927: Error: selected processor does not support `fmsr s0,r0'
....................................................................
....................................................................
/home/prakash/mr2build/cldc/linux_arm/target/debug/Interpreter_arm.s:4990: Error: selected processor does not support `fldmfds r6!,{s1}'
....................................................................
/home/prakash/mr2build/cldc/linux_arm/target/debug/Interpreter_arm.s:11419: Error: selected processor does not support `fmrs r0,s0'
/home/prakash/mr2build/cldc/linux_arm/target/debug/Interpreter_arm.s:11421: Error: selected processor does not support `fmrs r0,s1'
....................................................................
/home/prakash/mr2build/cldc/linux_arm/target/debug/Interpreter_arm.s:11421: Error: selected processor does not support `fmrs r0,s31'
....................................................................
/home/prakash/mr2build/cldc/linux_arm/target/debug/Interpreter_arm.s:11565: Error: selected processor does not support `fstmfds sp!,{s0,s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15,s16,s17,s18,s19,s20,s21,s22,s23,
s24,s25,s26,s27,s28,s29,s30,s31}'
....................................................................
....................................................................
....................................................................
make[1]: *** [Interpreter_arm.o] Error 1
make[1]: Leaving directory `/home/prakash/mr2build/cldc/linux_arm/target/debug'
make: *** [_debug] Error 2

plz guide me how can i utilize that floating point co-processor by resolving this issue!

thanks.
prakash

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
cjplummer
Offline
Joined: 2006-10-16

Since this is a CLDC issue, you should ask this question in the phoneME Feature forum.

Chris