PerfectDark wrote:
line in $(MPlayer dir)/loader/stubs.s: `sall $4,%edx', and does not
support something assembler directives... Seems, without assembler
MPlayer will be awful slowly... (So, tcc wont optimize existing c
code - just compile c2asm according to WYSIWYG principle :) ) If I
will have time to more closest work with tcc, I'll try fix it.
Left shifts always insert 0s, so logical and arithmetic shifts are the
same. 'sal' is just some gas-specific alias to 'shl'.
Just s/sal/shl in Mplayer, or:
$ grep shl i386-asm.h
ALT(DEF_ASM_OP3(shldw, 0x0fa4, 0, OPC_MODRM | OPC_WL, OPT_IM8, OPT_REGW,
OPT_EA | OPT_REGW))
ALT(DEF_ASM_OP3(shldw, 0x0fa5, 0, OPC_MODRM | OPC_WL, OPT_CL, OPT_REGW,
OPT_EA | OPT_REGW))
ALT(DEF_ASM_OP2(shldw, 0x0fa5, 0, OPC_MODRM | OPC_WL, OPT_REGW, OPT_EA |
OPT_REGW))
So dup each of these lines, replacing shldw with saldw. That should
teach tcc that gas rubbish too. :)
--
Zdenek Pavlas
_______________________________________________
Tinycc-devel mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/tinycc-devel