sm-sorcery-bugs AT lists.ibiblio.org
Subject: Bugs for Sorcery are reported here
List archive
[SM-Sorcery-Bugs] [Bug 15621] New: smgl-archspecs should provide native and generic for IA-32/x86-64 users
- From: bugzilla-daemon AT bugs.sourcemage.org
- To: sm-sorcery-bugs AT lists.ibiblio.org
- Subject: [SM-Sorcery-Bugs] [Bug 15621] New: smgl-archspecs should provide native and generic for IA-32/x86-64 users
- Date: 20 Mar 2010 00:05:29 -0000
http://bugs.sourcemage.org/show_bug.cgi?id=15621
Summary: smgl-archspecs should provide native and generic for
IA-32/x86-64 users
Product: Sorcery
Version: Untargetted future release
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: Sorcery
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: hgr AT vabo.cz
Setting archspecs is usually quite difficult for new users. What processor I
have, what model, what cpu family...? Is my new processor supported by this
GCC
version? What archspecs were changed? IA-32/x86-64 users can now use native
and
generic.
GCC from 4.2 provides targets native and generic.
http://gcc.gnu.org/gcc-4.2/changes.html :
-mtune=native and -march=native will produce code optimized for the host
architecture as detected using the cpuid instruction.
-mtune=generic can now be used to generate code running well on common x86
chips. This includes AMD Athlon, AMD Opteron, Intel Pentium-M, Intel Pentium 4
and Intel Core 2.
For creating portable systems (install iso, live cd) it is appropriate to use
generic. To optimize on particular system just use native and GCC detect
processor type and optimized for it.
Gentoo also suggests to use only -march=native and ignore all archspecs
settings. Of course this is not for cross-compiling etc..
http://en.gentoo-wiki.com/wiki/Safe_Cflags/Intel
We should update sorcery / smgl-archspecs to provide generic, native and
custom
settings (custom = today's archspecs).
I added "native" file with
CPUNAME="Native"
CFLAGS="-mtune=native -march=native"
HOST="i686-pc-linux-gnu"
FAST="-O3"
SMALL="-Os"
to my /usr/share/archspecs, chose it by sorcery and seems none problem here
during casting.
--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
-
[SM-Sorcery-Bugs] [Bug 15621] New: smgl-archspecs should provide native and generic for IA-32/x86-64 users,
bugzilla-daemon, 03/19/2010
- [SM-Sorcery-Bugs] [Bug 15621] smgl-archspecs should provide native and generic for IA-32/x86-64 users, bugzilla-daemon, 03/20/2010
- [SM-Sorcery-Bugs] [Bug 15621] smgl-archspecs should provide native and generic for IA-32/x86-64 users, bugzilla-daemon, 03/20/2010
Archive powered by MHonArc 2.6.24.