From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26122 invoked by alias); 11 Jun 2013 01:01:33 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 26080 invoked by uid 89); 11 Jun 2013 01:01:32 -0000 X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.1 Received: from mail-ob0-f180.google.com (HELO mail-ob0-f180.google.com) (209.85.214.180) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 11 Jun 2013 01:01:31 +0000 Received: by mail-ob0-f180.google.com with SMTP id eh20so11151872obb.11 for ; Mon, 10 Jun 2013 18:01:30 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:x-gm-message-state; bh=Xzqar5Zb4HdcQ0x/57WsawzkrLSbgStHomx+2o3nJjk=; b=DEMfUw9D4U9y9wEuEiUiEcRS6dF7424LIX0D3jwiKemN7u55syzeg65osCNGvRFWL2 p+GA88jGsQ4a3fYzTqsq8JINFGcg+rQRbrEc2ENKzpvuNEpVZLJzGgW6TDGNWogIwWG6 pwvQKF3mluE+p/UUriNy/vv/74dudEbOc8sR7cFfYYwVwg/Ad988aZ1HhooPsUiXt5oh CncVcuhR7P6FuZfTGMNJRHdy2s3CTPvEldFcAq5PTWLnK2gmnctSlHsRicE+mxyfMnf2 rmcJUNPH3dX74ber5cB87Aj06f0NtEljaRfUZr5SGYhYQB4qKyOtz0MxYFA1bBxwQyQG dX/Q== MIME-Version: 1.0 X-Received: by 10.182.105.102 with SMTP id gl6mr10283975obb.18.1370912490229; Mon, 10 Jun 2013 18:01:30 -0700 (PDT) Received: by 10.60.4.74 with HTTP; Mon, 10 Jun 2013 18:01:30 -0700 (PDT) In-Reply-To: References: Date: Tue, 11 Jun 2013 01:01:00 -0000 Message-ID: Subject: Re: Thumb inline assembly From: Ian Lance Taylor To: Kalai Rajah N Cc: "gcc-help@gcc.gnu.org" Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQnF1XleD4b5Pf5s3ytGbGiE1Z2QIEnhARZwQUx4TW6Rdo73Vjx2jHroahMMOIxh759th0qiAYn1HdVqJsweuTILz3PbI7IJPznA6L4kxqNe01zOgToDsVbVo4NLk5CSkQhWmiENsGuOX5P5kk7eGYMdPd6LD3FNX+iSMSOxbNAmAdOSn/CJd6VP4a9bzSC/lMS2QUx0 X-SW-Source: 2013-06/txt/msg00068.txt.bz2 On Mon, Jun 10, 2013 at 5:41 PM, Kalai Rajah N wrote: > "ldr r1, =%0 /* load the nvic_iser* register */ \n\t" The references are coming from your lines like the above. I don't know what this syntax means. You are asking GCC to put a register name in there, so the result is something like ldr r1, =r1 This winds up referring to a symbol named r1, rather than the register r1. Ian