tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Is this a duplicate ASM operation?


From: Sergey Korshunoff
Subject: Re: [Tinycc-devel] Is this a duplicate ASM operation?
Date: Sun, 18 Jan 2015 20:14:02 +0300

Hi! Another question:  Compiling a nimrod compiler by i386-win-tcc I
got  the following error:
/usr/local/lib/win32/include/math.h:541: error: invalid clobber register 'st'
It looks like tcc don't know about this name. Is ST an alias for the  ST0 ?


2015-01-18 11:27 GMT+03:00, Daniel Glöckner <address@hidden>:
> On Sun, Jan 18, 2015 at 02:10:52PM +0800, YX Hao wrote:
>> I don't know much about ASM and how tcc translates c code into ASM.
>> If the 2nd MOV is not necessary, can we optimize it in tcc?
>
> The redundant instruction is from the following printf call.
> TinyCC does not remember what is in each register when it starts
> to compile the next C statement.
>
>   Daniel
>
>
> _______________________________________________
> Tinycc-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>



reply via email to

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