From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <427BCCB2.8000607@asgaard.homelinux.org> Date: Fri, 6 May 2005 21:59:46 +0200 From: =?UTF-8?B?Ik5pbHMgTy4gU2Vsw6VzZGFsIg==?= User-Agent: Mozilla Thunderbird 1.0.2-1 (X11/20050323) MIME-Version: 1.0 To: 9fans@cse.psu.edu Content-Type: text/plain; charset=UTF-8; format=flowed Subject: [9fans] 8c dying with out of fixed registers Content-Transfer-Encoding: quoted-printable Topicbox-Message-UUID: 463321d2-ead0-11e9-9d60-3106f5b1d025 Hello, I've been trying to compile some crypto code, and it seems 8c isn't always too happy about it. I eventually got the monster ting reduced to the below (now very-nonsense code) snippet which dies with; a.c:22 out of fixed registers 8c 2655: suicide: sys: trap: fault read addr=3D0x0 pc=3D0x00036d93 So, for anyone that's bored, and wants to fix the compiler: #include static uvlong T7[256]; void f(unsigned char *key) { uvlong K1; int r; uvlong *S =3D T7; for (r =3D 1; r < 16; r++) { K1 =3D T7[S[(int)(K1 >> 56) ] & 0xff] ^ T7[(int)S[(int)(K1 >> 48) & 0xff] & 0xff] ^ T7[(int)S[(int)(K1 >> 40) & 0xff] & 0xff] ^ T7[(int)S[(int)(K1 >> 32) & 0xff] & 0xff] ^ T7[(int)S[(int)(K1 >> 24) & 0xff] & 0xff] ^ T7[(int)S[(int)(K1 >> 16) & 0xff] & 0xff] ^ T7[(int)S[(int)(K1 >> 8) & 0xff] & 0xff] ^ T7[(int)S[(int)(K1 ) & 0xff] & 0xff]; } } In the mean time, I'll rewrite the piece of code... -- Nils O. Sel=C3=A5sdal