[AD] Re: amd64, Athlon, P4 targets for makefile.vc |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On Monday 14 February 2005 06:23, Andrew Baxter wrote:
Heh... I always wondered what came after the elusive j... ;)
> can you review it, then let me know if it looks OK.
> dont apply it yet.. im still only 98% sure its OK.
I'm attaching the patch unmodified. Looks mostly fine, although I think P4
should be renamed pentium4 and all processor names should be lower case.
This to make them match the gcc names, so that the same commandline could
be used for MSVC and GCC and we don't have to document both sets.
The single one I don't know about is amd64... I think you need to pass -m64
for this on GCC rather than something like -mcpu=amd64, in which case
keeping amd64 as the name for the makefile is probably ok, but I don't
know for sure. Someone please correct me if I'm wrong.
Do you think it makes sense to add TARGET_ARCH_COMPAT in addition to
TARGET_ARCH_EXCL?
Evert
--- makefile.vc 2005-02-05 05:05:00.000000000 +1100
+++ makefile.vc_new 2005-02-11 22:43:51.156250000 +1100
@@ -174,6 +174,28 @@
LIBPARMS += -LTCG
endif
+if TARGET_ARCH_EXCL=ATHLON
+ CFLAGS -= -GB
+ CFLAGS += -G7
+ CFLAGS += -arch:SSE
+endif
+
+if TARGET_ARCH_EXCL=AMD64
+ CFLAGS -= -GB
+ CFLAGS += -G7
+ CFLAGS += -arch:SSE
+ CFLAGS += -arch:SSE2
+endif
+
+if TARGET_ARCH_EXCL=P4
+ CFLAGS -= -GB
+ CFLAGS += -G7
+ CFLAGS += -arch:SSE
+ CFLAGS += -arch:SSE2
+endif
+
+
+
endif
endif