From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <4BF190D7.9060804@domain.hid> Date: Mon, 17 May 2010 20:54:15 +0200 From: Gilles Chanteperdrix MIME-Version: 1.0 References: <4BF18A00.706@domain.hid> In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: Re: [Xenomai-help] Error building userspace: "selected processor does not support `rsc r7, r7, #0' List-Id: Help regarding installation and common use of Xenomai List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeremy Brown Cc: xenomai-help Jeremy Brown wrote: > On Mon, May 17, 2010 at 11:25 AM, Gilles Chanteperdrix > wrote: >> Jeremy Brown wrote: >>> {standard input}: Assembler messages: >>> {standard input}:140: Error: selected processor does not support `rsc >>> r7,r7,#0' >>> {standard input}:159: Error: selected processor does not support `rsc >>> r1,r1,#0' >>> make: *** [libxenomai_la-timeconv.lo] Error 1 >> Ok. Could you try and compile the following piece of code with your >> toolchain and show me the disassembly ? >> >> long long foo(long long x) >> { >> return -x; >> } >> >> -- >> Gilles. > > Thanks for the quick reply! Here's the complete contents of foo.s: > > .syntax unified > .arch armv7-a > .eabi_attribute 27, 3 > .fpu vfpv3-d16 > .eabi_attribute 20, 1 > .eabi_attribute 21, 1 > .eabi_attribute 23, 3 > .eabi_attribute 24, 1 > .eabi_attribute 25, 1 > .eabi_attribute 26, 2 > .eabi_attribute 30, 6 > .eabi_attribute 18, 4 > .thumb > .file "foo.c" > .text > .align 2 > .global foo > .thumb > .thumb_func > .type foo, %function > foo: > @ args = 0, pretend = 0, frame = 8 > @ frame_needed = 1, uses_anonymous_args = 0 > @ link register save eliminated. > push {r7} > sub sp, sp, #12 > add r7, sp, #0 > strd r0, [r7] > ldrd r0, [r7] > negs r2, r0 > sbc r3, r1, r1, lsl #1 > mov r0, r2 > mov r1, r3 > add r7, r7, #12 > mov sp, r7 > pop {r7} > bx lr > .size foo, .-foo > .ident "GCC: (Ubuntu 4.4.3-4ubuntu5) 4.4.3" > .section .note.GNU-stack,"",%progbits > Compile with -O2 please -- Gilles.