From owner-freebsd-arm@freebsd.org Sat Dec 16 13:04:24 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 26FD3E81CD0 for ; Sat, 16 Dec 2017 13:04:24 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id E79B43FC1; Sat, 16 Dec 2017 13:04:23 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-io0-x244.google.com with SMTP id e204so5372825iof.12; Sat, 16 Dec 2017 05:04:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=2rocaFtK+FXIXrZrxMa+1NSddFGWKYPmKEza3qIxW8k=; b=hvT9MV8O1JgdkqebIZRpARdJ8SiLaOoKJRLJLAi9C5zhyXg+Ic7c4OI5zHUYvuzqQL 5UyGgC+5tZtPSDnmkVOWJKyhuD1TOVI4++4j1vlH0VJX3Snnqsz2hK1ef2icC6jDwD4H KZ6PSIdCGCJ3kuOBVoGfd8l8Pb0nHXh+YGxE3n+MSettx30FKsi1VrgwLYVYNvcCgGr2 r3r89mYv+VkXMK1Mf0xObak4seAej/wcOJAl7NGWcRnfkExqgyL7eEDsdZsImQQ+ZNfR 04fCwpQmqRMXu8zun8LnfZh081RNoIBfFWM8k837XP1CrUjRrmHdkfR4o3WRonO3+DKV vJRA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=2rocaFtK+FXIXrZrxMa+1NSddFGWKYPmKEza3qIxW8k=; b=GtXhttXYQutGGwbR7dXwV2U2GK/zcRvaArT8Dx9rnEXi42J6IcquwrQNgDCRnEKBT1 M7+ZpXO27NDzG5z3uBWIzIgLB1jtN87++ScC89ZYBXQfn78ReXW9phhJwlsYcKwmqLwI /2Z/759d4cz8sBTINXA+k8Dm/da99VVHeaxfQiXrZ9Roj/nJX/xiHVxHdwllXUkeFNvA aTFsgZkDJsAQx6eu76bj2udQRwkJYBfIIZ0DQehHy+DbO03+rp21lup+b3C0q7mDyco4 pmpsfUVXSE+KQjFgWtlvVADp2BMVMVkgpejdpN+ST6SE1XZNFSy2Y+HbZLjDPoPVczHg KeEg== X-Gm-Message-State: AKGB3mKWpYifaDOi8Njtd7m8qaT3sQCUxOH1Nb52AYjVfvS9qxUnXCE7 olFpYJFRq1/g3mqa5jXS56l9Zpw7DJM+lJ/pHOyP3Bx7 X-Google-Smtp-Source: ACJfBovNR8luFvGYZqkMrUHZYEEkI7DA/pQNlH4+Fld3OCidL2T+dt+FzPDYR+lXniuJYO07AQtYQuVYcCrhgBLOyW0= X-Received: by 10.107.137.210 with SMTP id t79mr11716211ioi.83.1513429462773; Sat, 16 Dec 2017 05:04:22 -0800 (PST) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.131.163 with HTTP; Sat, 16 Dec 2017 05:04:02 -0800 (PST) In-Reply-To: <20171216080013.GA43041@FreeBSD.org> References: <5eb49766-e5af-d89f-b4f6-a0d655a3859a@bsd.com.br> <20171216080013.GA43041@FreeBSD.org> From: Ed Maste Date: Sat, 16 Dec 2017 08:04:02 -0500 X-Google-Sender-Auth: Ta2PP0N6pY_00EQ8lM_hGxMLnpo Message-ID: Subject: Re: as(1) for aarch64 (Was: Re: gcc for aarch64) To: Alexey Dokuchaev Cc: Warner Losh , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 16 Dec 2017 13:04:24 -0000 On 16 December 2017 at 03:00, Alexey Dokuchaev wrote: > > So does it come with assembler, is it GNU-compatible? (I was told it > does: s/${AS} ${ASFLAGS}/${CC} -Wa,${ASFLAGS:ts,}/) If yes, why there > is no wrapper installed as /usr/bin/as? > > Or it cannot be used as a drop-in replacement and users that want to > call as(1) directly should install `devel/binutils' port? Thanks, Clang's integrated assembler is mostly compatible with GNU as, but there are some macro constructs etc. that it does not handle. So it's not fully a drop-in replacement. The arm64 kernel and base system assembles source files by invoking the compiler driver (as do other architectures for most, but not all, of their asm source). Users who need to invoke the assembler directly should indeed install binutils from ports or packages.