From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: alberto.ozalla@cgglobal.com, "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] First call to rt_timer_tsc() causes an unexpected switch to secondary mode.
Date: Thu, 16 Oct 2014 10:16:18 +0200 [thread overview]
Message-ID: <543F7ED2.2080201@xenomai.org> (raw)
In-Reply-To: <543F70C5.1090005@xenomai.org>
On 10/16/2014 09:16 AM, Gilles Chanteperdrix wrote:
> On 10/15/2014 12:59 PM, ZIV-Alberto Ozalla Cantabrana wrote:
>> 'CFLAGS=-Os -pipe -D_REENTRANT -fomit-frame-pointer -march=armv7-a
>> -mtune=cortex-a8 -mfpu=vfpv3-d16 -finline-functions
>> -finline-limit=50 -ffast-math -include
>> /home/aozalla/pro/npcp/toolchain/include/builtin_redefines.h
>> -DMAX_PCI_SLOTS=8 -fPIC -DPIC -DNO_LARGEFILE_SOURCE
>> -U_LARGEFILE_SOURCE -U_LARGE_FILES -U_FILE_OFFSET_BITS'
>
> As a side note, if you have a modern toolchain which compiles by default
> for thumb2, by passing -march=armv7-a you disable compilation for thumb,
> and from my experience thumb2 code results in better latencies than ARM
> code. Also -Os -finline-functions is a bit strange: the advantage of
> using -Os is that it inline less functions, so it looks like a strange
> way to ask for -O2. Also note that according to my tests, you get better
> latencies on ARM with -Os than with -O2. Finally, I do not know what
> builtin_redefines.h does but beware: xenomai uses gcc builtin functions
> for atomic instructions by default now.
>
Also, vfpv3-d16 looks suspicious to me: you may be uselessly limiting
the number of vfp registers available to the compiler. If cat
/proc/cpuinfo tells you vfpv3 and not vfpv3-d16, you can use
-mfpu=vfpv3, if it tells you neon, you can use -mfpu=neon. I am almost
sure the beaglebone processor has 32 double vfp registers, not 16.
This page:
http://www.ti.com/product/AM3358/datasheet
Seems to imply that the beaglebone processor has NEON.
And this page:
http://en.wikipedia.org/wiki/ARM_architecture#Floating-point_.28VFP.29
Seems to imply that since it is a cortex a8, it has 32 double vfp
registers and not 16.
It would seem among arm processors of the "A" family and the armv7
architecture, only cortex A5 and cortex A7 may have 16 double vfp
registers (the atmel sama5d3 for instance is in this case).
--
Gilles.
next prev parent reply other threads:[~2014-10-16 8:16 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <543E4B9F.60602@cgglobal.com>
2014-10-15 10:59 ` [Xenomai] First call to rt_timer_tsc() causes an unexpected switch to secondary mode ZIV-Alberto Ozalla Cantabrana
2014-10-15 11:11 ` Gilles Chanteperdrix
2014-10-15 13:12 ` ZIV-Alberto Ozalla Cantabrana
2014-10-15 13:16 ` Gilles Chanteperdrix
2014-10-15 20:03 ` Gilles Chanteperdrix
2014-10-17 16:33 ` ZIV-Alberto Ozalla Cantabrana
2014-10-17 16:38 ` Gilles Chanteperdrix
2014-10-15 13:19 ` Gilles Chanteperdrix
2014-10-15 13:34 ` ZIV-Alberto Ozalla Cantabrana
2014-10-16 7:16 ` Gilles Chanteperdrix
2014-10-16 8:16 ` Gilles Chanteperdrix [this message]
2014-10-16 8:33 ` ZIV-Alberto Ozalla Cantabrana
2014-10-16 8:39 ` Gilles Chanteperdrix
2014-10-16 18:17 ` Lennart Sorensen
2014-10-16 18:58 ` Gilles Chanteperdrix
2014-10-16 20:56 ` Lennart Sorensen
2014-10-16 23:14 ` Tom Evans
2014-10-17 5:34 ` Gilles Chanteperdrix
2014-10-17 6:47 ` Tom Evans
2014-10-17 7:02 ` Gilles Chanteperdrix
2014-10-17 14:08 ` Tom Evans
2014-10-17 19:36 ` Gilles Chanteperdrix
2014-10-17 14:32 ` Anders Blomdell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=543F7ED2.2080201@xenomai.org \
--to=gilles.chanteperdrix@xenomai.org \
--cc=alberto.ozalla@cgglobal.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.