Questions tagged [hard-float]

Hard-float is using the floating point unit on Raspberry Pi chip instead of the software floating point. Compiling in hard-float may result increase of FLOPS.

Hard-float is using the floating point unit on Raspberry Pi chip instead of the software floating point. Compiling in hard-float may result increase in the number of floating point operations per second (FLOPS).

16 questions
45
votes
3 answers

How can I tell if I am using the hard-float or the soft-float version of Debian/Raspbian?

Let's assume that I am dropped into a room with a Raspberry Pi running either Debian or Raspbian. How do I find out if it has hard float support or if it is just using soft float?
fouric
  • 1,809
  • 4
  • 18
  • 26
17
votes
3 answers

How can I get and install Oracle's Java JVM for Raspbian?

A recent press release from Oracle suggests that they have just released a JVM for Raspbian. The key text is: Java SE 7 Update 6 introduces a JDK for Linux on ARM v6 and v7 to address “general purpose” ARM systems, such as those used for the …
Darren Wilkinson
  • 2,922
  • 4
  • 28
  • 27
13
votes
2 answers

Why does python run relatively slowly?

I've been benchmarking the Pi on some of my simulation codes, relative to a couple of laptops I have. My codes tend to be floating point intensive, so I've been using Raspbian (which turns out to be much faster) due to its hard-float support. I have…
Darren Wilkinson
  • 2,922
  • 4
  • 28
  • 27
9
votes
1 answer

Hard-float and performance

Ever since the official Raspbian image came out, there has been much talking about hard-float - often cited as one of the most prominent Raspbian features, promising "tremendous performance boost". I realize that floating point operations performed…
user13
6
votes
2 answers

Are there any technical limitations when running hard-float binaries on a soft-float OS?

Since the hardware is generally the same between Raspberry Pi's, the target hardware is known to have a hardware floating point unit. I also understand that some operating systems opt to use soft-FP based instructions over using the FPU for…
Breakthrough
  • 2,408
  • 1
  • 15
  • 18
6
votes
1 answer

Preparing for a binary distribution. Hard float, soft float or both?

I have some source code that I would like to distribute as a binary to users so they don't have to wait for about 20 mins for it to compile. However, I am a bit confused about hard and soft float binaries. How can I know whether a binary is soft or…
hifkanotiks
  • 1,901
  • 3
  • 16
  • 28
6
votes
5 answers

Can I install `libspotify` on Raspbian?

Is it possible to get libspotify working on the official Raspbian image? I installed it but couldn't figure out why my applications couldn't link to it: error while loading shared libraries: libspotify.so.12: cannot open shared object file: No such…
user433194
  • 121
  • 2
  • 3
4
votes
3 answers

Raspberry Pi 4 Target Architecture Cross Linux From Scratch

I'm following the Cross-compiled Linux From Scratch - Embedded book. I need to know the following information for the Raspberry Pi 4B: Target architecture triplet - aarch64-linux-musleabihf. Architecture - aarch64. ARM architecture -…
junglie85
  • 181
  • 5
3
votes
1 answer

Jamvm unable to run blocky on Arch Linux

I have compiled jamvm.I downloaded blocky for github and extracted it. Then I followed some instructions here and when I execute it: Error: jamvm VM not supported So I modified ./blocky-jamvm from java -jar -Xmx128M…
ArchHaskeller
  • 1,435
  • 12
  • 35
3
votes
1 answer

Parsing Double in Mono (C#) fails

I need to serialize objects to JSON. If I install mono from apt-get, serializing with JSON.net does not work. I added this line into /etc/apt/sources.list: deb http://debian.meebey.net/experimental/mono / After this, i ran sudo apt-get clean sudo…
feedc0de
  • 229
  • 2
  • 3
  • 9
2
votes
1 answer

float, stream and toolchain

I'm working with a raspberry 2 running Arch Linux a4h-rpi2-arch 4.1.12-1-ARCH #1 SMP PREEMPT Tue Oct 27 19:16:16 MDT 2015 armv7l GNU/Linux I got some problem to display float on cout using c++ streams. Here is a simple main : #include…
rem
  • 183
  • 1
  • 7
1
vote
3 answers

Building drivers for rtl8811CU/rtl8821CU

I've extracted driver from cd that came with my wireless card and modified it to build on kernel versions up to 4.15. Thanks to similar drivers already patched for new kernels it was an easy task. I've added RPI_ARM platform to Makefile. Even with…
whitebatman2
  • 41
  • 1
  • 6
1
vote
0 answers

How can I tell if Java is performing properly?

There are many different versions of Java and many instructions on how to install the fastest Java version on a Raspberry Pi. How can I tell if the one I've installed is using hard floats? Are there other aspects which can significantly affect the…
Sampo
  • 111
  • 2
0
votes
2 answers

How do you compile a c++ programs to use Hard Float in Raspberry using Debian OS?

How do you compile a c++ program to use Hard Float registers? It is said in the FAQ section of Raspbian that the following tags are the only ones required when compiling. -march=armv6 -mfpu=vfp -mfloat-abi=hard Is this applicable also when…
user123456098
  • 350
  • 4
  • 19
0
votes
0 answers

Compiling Mono 3.x on Raspberry Pi

To get rid of the soft float vs. hard float ABI problem I tried to install an up-to-date version of mono on my Raspberry Pi with git clone https://github.com/mono/mono.git cd mono git submodule init git submodule update ./autogen.sh…
Boris
  • 101
  • 2
1
2