Preprocessor failure
Edouard Gomez
ed.gomez at free.fr
Mon Oct 20 17:08:02 PDT 2003
Hello,
Let me first introduce myself. I'm a xvid[1] developer, and during a bug
hunting session for pe-i386 object format from nasm + GNU ld 2.14, i
tested a bit yasm as it's compatible with the nasm parser.
So i would like to support yam in XviD, but i run into some problems:
- current tarball does not have -D options that XviD uses
-> fixed in CVS that has -D option
- yasm seems to work fine on the bug i've been tracking[2] as the
pe-i386 object file is right.
-> good point for yasm
- yasm is a bit pedantic on some usual things like trailing commas on
data definitions like:
dw 1, 2, 3, 4, <-- will panic the parser
dw 1, 2, 3, 4
-> This obliges me doing some code cleanup in our nasm files, it's
just annoying but not a bug.
- yasm refuses equ symbols in macros
- yasm fails at least one file (reduced_mmx.asm[3]). The assembling
error is outstanding, line 928 has no pcmpgtw opcode.
-> bug
Then i stoped.
$ make
A: image/x86_asm/reduced_mmx.asm
../../src/image/x86_asm/reduced_mmx.asm:396: label or instruction
expected at start of line ../../src/image/x86_asm/reduced_mmx.asm:396:
duplicate definition of `pcmpgtw'; first defined on line 928
I won't commit code cleanups for yasm support to xvid cvs until i get
the complete files assembled. That's why i post here this bug report so
we can come up with a working yasm XviD.
And sorry for just offering you bug report and no patch, but my time is
quite limited this last weeks.
[1] http://www.xvid.org/
[2] http://sourceware.org/ml/binutils/2003-10/msg00497.html
[3] http://www.xvid.org/cvs/chora/co.php/xvidcore/src/image/x86_asm/reduced_mmx.asm?login=2&r=1.2
--
Edouard Gomez
More information about the bug-yasm
mailing list