From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: cagnulein@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Float operations on ARM i.MX27
Date: Tue, 12 Oct 2010 18:54:38 +0200 [thread overview]
Message-ID: <4CB492CE.3020906@domain.hid> (raw)
In-Reply-To: <b54eff8c27fb8d66117fe1dc79a37ebe.squirrel@domain.hid>
Cagnulein wrote:
> I'm continuing my experience on Xenomai and i've reached the floating
> point "point" :)
> I've succesfully compiled a project using some floats (division and
> printf) but when i try to use a "high level" function like "ceil" or
> "sqrt" the linker can't find them.
If you read sqrt or ceil manpage, you will see that you need to add -lm
on gcc command line. As you would do on your host system.
>
> I know there isn't any hard floating point unit on this cpu, so it's all
> emulated (soft floats): if it's so, i've to implement these functions
> inside my project?
No. This is not to say that there are no issues on ARM, but this one is
a purely classical beginner mistake.
For the FPU issue, see:
http://www.arm.linux.org.uk/mailinglists/faq.php#f3
--
Gilles.
next prev parent reply other threads:[~2010-10-12 16:54 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-10-12 16:21 [Xenomai-help] Float operations on ARM i.MX27 Cagnulein
2010-10-12 16:54 ` Gilles Chanteperdrix [this message]
2010-10-12 17:09 ` Cagnulein
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=4CB492CE.3020906@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=cagnulein@domain.hid \
--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.