tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] [PATCH] tccgen.c: Optimise 0<<x, 0>>x, -1>>x, x&0, x*


From: Edmund Grimley Evans
Subject: Re: [Tinycc-devel] [PATCH] tccgen.c: Optimise 0<<x, 0>>x, -1>>x, x&0, x*0, x|-1, x%1.
Date: Sat, 7 Mar 2015 09:06:18 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

There's probably no point in me carefully using memset, seeing as a
bit later in the same function, when simplifying multiplication by a
power of two, the code says "vtop->c.ll = n". That looks as though it
wouldn't work on a big-endian host. Has anyone tried TCC, as a
cross-compiler, on a big-endian host? Would it be easy to try? Does
the configure script cope gracefully with an "unsupported" host
architecture? Does anyone here have easy access to a big-endian
machine or simulator?

(I see I still have that old SPARCstation 2 on the floor under my
desk, gathering dust. I doubt it would boot, though. It would probably
be easier to install a big-endian architecture under QEMU than get the
SPARCstation out from under all the other slighly more recent junk.)

Edmund



reply via email to

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