port only builds with build_arch=i386 on command line -- any way to specify that in the portfile?

Joshua Root jmr at macports.org
Mon Sep 5 20:00:06 PDT 2016


On 2016-9-6 10:10 , Fred Wright wrote:
>
> On Sat, 3 Sep 2016, Ryan Schmidt wrote:
>
>> But only do this if this software requires it. Otherwise, let MacPorts use its default value of -Os.
>
> Seriously?  In this day and age?
>
> AIUI, Apple used to use -Os for their own builds in the PPC era, since it
> was needed to keep the bloat down to a dull roar in relation to disk
> drives at the time.  But when they switched to Intel, they also switched
> to -O2.  This allowed them to inflate the performance benefit of the
> architecture switch. :-)

The gap between CPU speeds and memory speeds has grown much larger since 
the PPC era. The biggest factor in performance is usually whether your 
working set fits in the CPU caches, and if so, which level.

- Josh


More information about the macports-dev mailing list