On Wed, May 16, 2007 at 11:07:11AM -0300, Conrado Miranda wrote:
> So I got the asm.c file at http://landley.net/code/tinycc/bugs. I tried to
> compile but I got an error: asm.c:5: unknown opcode 'xorl'.
The bug asm.c triggers is that subst_asm_operand doesn't have enough
information to correctly substitute the parameter. It just sees
r==VT_LVAL and generates "xorl (%eax),(%eax)" although the constraint
is "r".
This is unrelated to your problem.
Your problem is that tcc doesn't know what ".lcomm" is.
Instead of
.lcomm X, Y
try
.bss
X:
.space Y
Don't forget to switch back to the correct section.
Daniel
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel