[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pcc-list
Subject:    [Pcc] extraneous characters in asm output
From:       Iain Hibbert <plunky () ogmig ! net>
Date:       2015-09-01 10:34:52
Message-ID: alpine.NEB.2.11.1509011001110.292 () galant ! ogmig ! net
[Download RAW message or body]

Hi

the following example code

void foo(void)
{
	asm("lcall $0x7fff,$0x0");
}

when compiled, does not insert the correct code into the assembler 
output..

/tmp/ctm.XDHCzi: Assembler messages:
/tmp/ctm.XDHCzi:10: Error: no such instruction: `xt'
/tmp/ctm.XDHCzi:14: Error: symbol `foo' is already defined
/tmp/ctm.XDHCzi:17: Error: symbol `.L241' is already defined
/tmp/ctm.XDHCzi:18: Error: symbol `.L245' is already defined
error: as terminated with status 1

looking at the assembler output, it seems that something has gone wrong 
with the string?

        .text
        .align 4
        .globl foo
        .type foo,@function
foo:
        pushl %ebp
        movl %esp,%ebp
.L241:
.L245:
xt
        .align 4
        .globl foo
        .type foo,@function
foo:
        pushl %ebp
        movl %esp,%ebp
.L241:
.L245:
.L243:
        leave
        ret
        .size foo,.-foo
        .ident "PCC: pcc 1.2.0.DEVEL 20150829 for i386--netbsd"


iain
_______________________________________________
Pcc mailing list
Pcc@lists.ludd.ltu.se
https://lists.ludd.ltu.se/cgi-bin/mailman/listinfo/pcc
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic