On Mon, 15 Jan 2018 18:30:58 +0000, Ahem A Rivet's Shot wrote:
> On Mon, 15 Jan 2018 17:56:14 +0000 (UTC)
> Kiwi User wrote:
>
>> Assuming that RPi binaries for the same set of programs are about the
>> same size as as the X-64 ones, that implies that very much less file
>
> ARM binaries are quite a bit more compact than X86-64 binaries
> which is why ARM hardware manages with less memory than PC hardware.
>
>> caching is available in the RPi, especially in mine, an oldish 512MB
>
> But 512MB is a *lot* less than 8GB and won't have any cache space
> available to speak of.
>
>> model B and compilation performance tends to support that: the second
>> and subsequent compiles of the day are a bit faster than the first, but
>> the significant speed-up shown by the T440 is never seen on the RPi.
>
> You wouldn't 512MB is marginal for compiles really and probably
> needs swap for some compiles - if you were using a 4GB Rock64 (or
> perhaps even a 2GB Odroid C2) you'd expect to see similar speed up
> behaviour to your 8GB laptop.(
I've just done a few quick comparisons of programs I've compiled on Intel
box running X-64 Fedora and my 512KB model B under Stretch. In all cases
the programs are compiled with gcc and statically linked. Here's what I
found:
Program X_64 RPi
======= ==== ===
hello.c 7376 8216
spd 87520 89884
me 159573 182208
hello.c is a slightly brighter version of the classic that can be told a
name to say hullo to
$ hello
Hello, C world
$ hello Zaphod Beeblebrox
Hello, Zaphod Beeblebrox
spd is a server I wrote some time ago to allow Java programs to access
serial connections and recently ported to the RPi so a C program can more
easily talk to a PICAXE chip via a USB-serial converter. BTW 'porting' it
to the RPi was as simple as extracting it from the CVS repository on my
house server and running 'make' - a zero effort port!
me is my favourite text editor, aka microEmacs 4.0
I'm pleased to see that my guestimate that the executables would be more
or less the same size was pretty good.
The only surprise is that the ARM executables are all a little bigger
than the X_86 binaries by a factor of 3 to 14 percent.
--
Martin | martin at
Gregorie | gregorie dot org
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|