getconf LEVEL1_DCACHE_LINESIZE
Debian sid arm926: 0 while cpu specs specify 32
Ubuntu 10.04 on intel atom: 64 OK
Ubuntu 10.04-64 on AMD 64: 64 OK
Solaris 10: invalid argument (LEVEL1_DCACHE_LINESIZE)
FreeBSD 8.1: no such configuration parameter `LEVEL1_DCACHE_LINESIZE`
I wonder if anyone could check with different linux installs.
...
{$IFDEF UNIX}
{$IFDEF UNIX} encompasses all *nix flavors, including Mac OSX. Use {$IFDEF LINUX} if you want to limit yourself to linux which looks appropriate seen above results.
Note that I didn't try the fpc version since the command line version doesn't work and even when it did, from experience, assuming that constants such as
SC_LEVEL1_DCACHE = 190; have the same value on all these systems is very risky.