x86 boot code build

Dimitry Andric dimitry at andric.com
Fri Oct 5 08:25:15 UTC 2012


On 2012-10-05 07:15, Andriy Gapon wrote:
> on 04/10/2012 23:02 Dimitry Andric said the following:
>> Well, do we still officially support any real i386 machines?  If so, we
>> should still use -march=i386 for the boot code.  Otherwise, let's start
>> using -march=i486 explicitly.
> As I mentioned earlier, the only difference for boot code is use of 'leave'
> instruction.  I don't think -march=i486 buys us much, if anything, except for
> "coolness factor" (i486 is "cooler" than i386).  On the other hand it makes
> binaries larger.  So...

Yes, the boot loader is a special case anyway.  If -march=i386 makes the
binary just a little bit smaller, let's use that.  At least then the
used flags will be consistent across the i386 and amd64 builds.


More information about the freebsd-arch mailing list