cc: assembler failed for tmp-divrem_2.s
Dennis Clarke
dclarke at blastwave.org
Mon Mar 29 15:08:08 CEST 2010
> Dennis Clarke <dclarke at blastwave.org> writes:
>
> I'll see your 5.10 22009/06/03 and raise you these :
>
> $ uname -a
> SunOS mercury 5.10 Generic_142900-07 sun4u sparc SUNW,Sun-Blade-2500
> $ ls /opt/studio/*/SUNWspro/bin/cc
> /opt/studio/SOS12.1/SUNWspro/bin/cc /opt/studio/SOS12/SUNWspro/bin/cc
> $ /opt/studio/SOS12/SUNWspro/bin/cc -V
> cc: Sun C 5.9 SunOS_sparc Patch 124867-13 2010/03/09
> usage: cc [ options] files. Use 'cc -flags' for details
> $ /opt/studio/SOS12.1/SUNWspro/bin/cc -V
> cc: Sun C 5.10 SunOS_sparc Patch 141861-03 2009/12/03
> usage: cc [ options] files. Use 'cc -flags' for details
>
> Sorry, what does this mean? (These are clearly sparc things, not
> x86-related as the present problem.)
Ignore the arch. I have all the compilers on x86/x86_64/Sparc and even ppc
here somewhere. Not important at the moment in any case.
> Let me know if the above asm output was of any value.
>
> Unfortunately it didn't generate any byte 'or' instructions.
I noticed that.
> (My idea
> was to see what systax it generated, since it presumably generates
> something its assembly can digest.)
>
> Please compile the attached program and send me the compiler error
> messages.
It is seen as one pile of errors :
$ cat -n hack.s
1 .section ".text"
2 .globl main
3 main: or %dl, %al
4 and %dl, %al
5 xor %dl, %al
6 orb %dl, %al
7 andb %dl, %al
8 xorb %dl, %al
9 ret
$ cc -o hack hack.s
Assembler:
"hack.s", line 1 : Syntax error
Near line: " .section ".text""
"hack.s", line 3 : Syntax error
Near line: "main: or %dl, %al"
"hack.s", line 4 : Syntax error
Near line: " and %dl, %al"
"hack.s", line 5 : Syntax error
Near line: " xor %dl, %al"
cc: assembler failed for hack.s
Dennis
More information about the gmp-bugs
mailing list