tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Unknown assembler directive '.lcomm'


From: Daniel Glöckner
Subject: Re: [Tinycc-devel] Unknown assembler directive '.lcomm'
Date: Wed, 16 May 2007 19:57:12 +0200
User-agent: Mutt/1.4.2.1i

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]