From owner-freebsd-arm@freebsd.org Wed Oct 10 10:17:07 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7BA7510CECDA for ; Wed, 10 Oct 2018 10:17:07 +0000 (UTC) (envelope-from marklmi@yahoo.com) Received: from sonic312-21.consmr.mail.gq1.yahoo.com (sonic312-21.consmr.mail.gq1.yahoo.com [98.137.69.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 06B67778C4 for ; Wed, 10 Oct 2018 10:17:06 +0000 (UTC) (envelope-from marklmi@yahoo.com) X-YMail-OSG: 5Lcpbr0VM1kgK4glpUHb.tAdRxmHtWwpMxuztVNPfWisa3nln2PXN3Fgr5FhYLF KgIyKuLfpIhP1l9xNCTQGLhEJ0cp2usIjPT1_9HRQasdIuDPyLYOdGHzputWSKUjgC5AoY9YFfcV U5zZc_Umh4fUGPYkjgDLYwA1H6dMGdvM3kj4ei44H5ifj6_P1wMjCxhHL07A1USKAaYfZAqEYCbd 3KvRHjRoNGG_neNNDt8SzpS7N_wv3kxIoEI_W9VqFBFn7tp3B9ycG4IrAi4CxjPWNSZM7.g.8wC. 5H4vsBEafd7DIQLFud6_8vTzHK20N0FBttZ3jl.WsyxrEBhqH2lDEn8ABjpDlH6Jtim7s8QKydZq ok7nak5zVvyWBXOy79j0KgmWxfKniDn4jD596cOY92tvuDYo3WwQ0anEdBrNR2Sh33wA3o8K.6Z4 acMqZax.OO4lV74AHW.LI5EOr8akOkgwa.aX5ziaxpD3PMgke7IzXRG.bKyummti_OLsBX7B8dII 5ztgmdwwKucDjeBF_A5WcBSf1pyoQUohVfSdjET2oX_AhoV5hLYOJ58O9ta8TPnqIEgxaux6vo5r KEt5spkwgKzaTERyjX0OLcIaVlhD7DCUu4yX8s5c3748_FB8LTX3wGVnjTod10YR_q1.5fY.iZx3 0DyqMbPVx.Kx3ip01ixJZAM.j5oJ_HMETWOggOBjpv1Q5OWZlbzRKIpzcrngyY4M5316L7Mlg3nY 3LsBpvBfMrFZjAm8UMrHeTbplPxnA5TLOCkfYamew.lw1HQIayKcsTCfKcIhGTguE5_4XSJKkfKO iz4rhWYndDnoDkhoULuofcE3JakLPZCT_hBIfLTfAmmIvzU0FCvsEIVLS9JIVPEUNXdkc9QMPovO WsVdoH4S2xwKWJg0MQz8nphsFP2IOMPVUpJZkPlCdZbt.uzi7MBAvAJJ912s4JgEf1KD7o52OGDq T42LXgRGrBSIOk27d.JnoSKcGecmQejnE8suXyGUdTxGzipWCgTv6f5sq2u__3nBXttLNKHR3OJU 9QuGlq.qnt72NsO40rpsPsd3rCL6Fl2pfpOwGgvEINmfOGCv3sSAAUWrSEGl8C34VeyoZc5azKyP siaI4gw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic312.consmr.mail.gq1.yahoo.com with HTTP; Wed, 10 Oct 2018 10:17:00 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.101]) ([76.115.7.162]) by smtp412.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 78b143f7e26acda13a55422b970f7cb4; Wed, 10 Oct 2018 09:56:44 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: FYI: SoftIron Overdrive 1000 (aarch64 Cortex-A57) vs. old PowerMac G5 (powerpc64) "Quad Core": a comparison of build times Message-Id: Date: Wed, 10 Oct 2018 02:56:44 -0700 To: FreeBSD PowerPC ML , freebsd-arm X-Mailer: Apple Mail (2.3445.9.1) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Oct 2018 10:17:07 -0000 The following is based on WITHOUT_LLVM_TARGET_ALL=3D and powerpc64 has WITH_LIB32=3D while aarch64 does not. In both cases system-clang is used to do the buildworld buildkernel, although for powerpc64 one would not normally install and try to boot and use the result for FreeBSD as things are. The builds are self-hosted, not cross builds. OverDrive 1000 buildworld buildkernel: a little under 3 hr 17 min. G5 "Quad Core" buildworld buildkernel: around 4 hr 53 min (4 hr = 14 min ignoring lib32 time). The G5 had not started building lib32 (or the kernel) until about 3 hr 28 min into its build. aarch64 has no lib32 to build. The G5 did not start on the kernel until around 4 hr 7 min. So around 4 hr 14 min when not counting lib32's time. powerpc64 is using devel/powerpc64-binutils (or devel/binutils) but aarch64 is using lld. (Last I tried lld would not let the build complete for powerpc64, if I remember right.) For powerpc64 the binutils used had been built already. What was built was (same-in-both part): (neither built a bootstrap compiler or linker) #WITH_CROSS_COMPILER=3D WITH_SYSTEM_COMPILER=3D WITH_SYSTEM_LINKER=3D # WITH_LIBCPLUSPLUS=3D WITHOUT_BINUTILS_BOOTSTRAP=3D WITH_ELFTOOLCHAIN_BOOTSTRAP=3D WITHOUT_LLVM_TARGET_ALL=3D #WITH_CLANG_BOOTSTRAP=3D WITH_CLANG=3D WITH_CLANG_IS_CC=3D WITH_CLANG_FULL=3D WITH_CLANG_EXTRAS=3D WITH_LLD=3D WITHOUT_BINUTILS=3D WITH_LLDB=3D # WITH_BOOT=3D # WITHOUT_GCC_BOOTSTRAP=3D WITHOUT_GCC=3D WITHOUT_GCC_IS_CC=3D WITHOUT_GNUCXX=3D The variations for what was built between aarch64 vs. powerpc64 were: #WITH_LLD_BOOTSTRAP=3D WITHOUT_LLD_BOOTSTRAP=3D WITH_LLD_IS_LD=3D WITHOUT_LLD_IS_LD=3D WITHOUT_LIB32=3D [This is effectively a comment: aarch64 never has = lib32] WITH_LIB32=3D powerpc64 uses: LOADER_DEFAULT_INTERP=3D4th Also, cortex-a57 used: LDFLAGS.lld+=3D -Wl,--no-threads Note: My actual powerpc64 builds are via devel/powerpc64-gcc and devel/powerpc64-binutils (or devel/binutils), but I've not built for aarch64 that way. For powerpc64 I do build clang and have clang as cc. (Clang's powerpc64 problems are tied to things special for buildworld and buildkernel .) Unfortunately, devel/powerpc64-gcc based builds are WITHOUT_LIB32=3D because for lib32 it misuses R30 in crtbeginS code (vs. the ABI for FreeBSD) and 32-bit code just produces core files from the bad dereference that results. Note: The G5 so-called "Quad Core" has 4 cores overall in the system but they are evenly split across 2 sockets: 2 dual-core processors. =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar)