Re: cpu vs CPUTYPE
Shane Ambler <[email protected]> Thu, 11 Jun 2026 13:09:09 +0930
| Newsgroups | gmane.os.freebsd.questions |
|---|---|
| Message-ID | <[email protected]> |
On 9/6/26 19:48, Jan Stary wrote: > On Jun 07 22:15:41, [email protected] wrote: >> The Intel Core i7-4600U (4th Gen) official architectural code name is >> Haswell, which should be the CPUTYPE. > > Thanks. Reading at the lists of Intel code names > sorted out CPUTYPE for me on a few amd64 machines. I think the important point is that CPUTYPE is sent to the compiler, so it has to be a value accepted by the compiler and be same as or earlier than the host cpu. Use `clang --print-supported-cpus` to get a list of supported values, then the trick is linking that list to user visible model numbers. You can use llc to get the cpu type of the host machine % llc --version ... Host CPU: sandybridge ... You need to buildworld with WITH_CLANG_EXTRAS=yes to get llc in base, so install the llvm pkg and add the version - eg. llc21 -- FreeBSD - the place to B...Software Developing Shane Ambler