|
From: | Zdenek Pavlas |
Subject: | Re: [Tinycc-devel] compiling MPlayer or |
Date: | Wed, 12 Jul 2006 15:31:02 +0200 |
User-agent: | Thunderbird 1.5.0.2 (X11/20060516) |
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.hALT(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
[Prev in Thread] | Current Thread | [Next in Thread] |