On Wed, 28 Jun 2000, Pawan Singh wrote:

> 
> So I will have to hand write the certain portions of code in assembly.
> For my benchmark tests, I stumbled and produced some code using "inline
> assmbly". But now I need full fledged documentation on it.
> 
> I could not find any documentation on it (especially the syntax for
> floating point instructions). The floating point instructions have
> inherently different syntax because the operations happen on a stack of
> registers. Can someone suggest any book on inline assembly for floating
> point and gcc? I have looked at kernel examples and they are of no use for
> floating point. The gcc documentation and a few other people's tutorials
> are pretty much useless for floating point assembly.

The info pages for gcc are a good starting point.  The useful details
are in the section about inline assembly, but also in the "machine
description" section.  Also a lot of information can be gathered from
reading the actual gcc machine description file for i386 in gcc's source
(see gcc-x.y.z/gcc/config/i386/i386.md).  The syntax for specifying
opcodes you'll find there is the same as you should use with inline
assembly.

Hope it helps a bit.


Nicolas


--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to