A Fews Bugs

Michael Urman mu at tortall.net
Sat May 20 08:41:17 PDT 2006


On Sat, May 20, 2006 at 07:50:29PM +0530, Vivek Mohan wrote:
> I'm Vivek. I use Yasm for verification of my own project - udis86:
> (http://udis86.sourceforge.net/). Great work with the assembler. I'd
> just like to point out, what I think are, a few bugs in YASM.

Oh sweet! BSD-license, even. Peter may be very interested in talking with
you to work together more closely.  He's our architecture expert so I'll
let him handle the first two.

> (3) YASM seems to ignore invalid opcodes that have no operands.
> 
> I think this is critical, since they are typos, and in a large
> program, if YASM ignores them, the programmer would be misled to
> believe it's a logical error rather than a syntactical one.

This is actually on purpose. The NASM syntax considers these to be
labels. Yasm has a warning -Worphan-labels to assist in finding these.
At some point I think we should come up with a good way to turn it on
all the time. I'm a little worried about false positives for uncalled
funtions, but that could probably be mitigated with careful use of
global directives.

I've added this as a FAQ to
http://www.tortall.net/projects/yasm/wiki/Faq

Michael
-- 
Michael Urman  [- mu at tortall.net -]


More information about the yasm-devel mailing list