Message-ID: <8623cff56c699b823fe570b3d54e6cd9.squirrel@domain.hid> In-Reply-To: <4CB492CE.3020906@domain.hid> References: <4CB492CE.3020906@domain.hid> Date: Tue, 12 Oct 2010 19:09:03 +0200 From: "Cagnulein" MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Xenomai-help] Float operations on ARM i.MX27 Reply-To: cagnulein@domain.hid List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gilles Chanteperdrix Cc: xenomai@xenomai.org > 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 was so focused on Xenomai and i didn't thought "simply". >> >> 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 > Thank you again, i was thinking about kernel/user space issues, architecture not well implemented...and i didn't thought about this mistake :( > > -- > Gilles. >