On 22/07/2015 13:09, Russell Wallace wrote: > That does look useful! For the architecture parameter, the two common > scenarios are: > > 1. I'm going to link to a program which I'm then going to ship as a > binary. I need something that will work correctly on every x64 CPU, and > should preferably be optimised according to the distribution of machines > that exists today or is projected to exist over the next few years.
For x64 I would expect the core2 architecture to be pretty safe and reasonably fast on most current machines. > 2. I'm compiling stuff purely to run on my own machine. I don't know > exactly what variant of CPU it has, but would by all means like the code > to be optimised for my CPU, whatever that happens to be. If you install and run CPUID, available here: http://www.cpuid.com/softwares/cpu-z.html it will tell you what processor your PC has. > What should be specified for the architecture parameter in each case? The available architectures are those listed when mpir_config.py is run: 1. gc 2. p3 (win32) 3. p3\p3mmx (win32) 4. p4 (win32) 5. p4\mmx (win32) 6. p4\sse2 (win32) 7. p6 (win32) 8. p6\mmx (win32) 9. p6\p3mmx (win32) 10. pentium4 (win32) 11. pentium4\mmx (win32) 12. pentium4\sse2 (win32) 13. atom (x64) 14. bobcat (x64) 15. bulldozer (x64) 16. bulldozer\piledriver (x64) 17. core2 (x64) 18. core2\penryn (x64) 19. haswell (x64) 20. k8 (x64) 21. k8\k10 (x64) 22. k8\k10\k102 (x64) 23. nehalem (x64) 24. nehalem\westmere (x64) 25. netburst (x64) 26. sandybridge (x64) 27. sandybridge\ivybridge (x64) Please note that msbuild.bat can only be used for those architecures that have already been installed into the Visual Studio build. That is those available by default and those added by running mpir_config.py (I have updated mpir_config.py in my GIT repository so I hope the bug you found when you ran it is not present in this version). In msbuild.bat the architecure parameter is one of the names in the above list with any '\' replaced by an underscore - hence the build 'sandybridge\ivybridge' above becomes 'sandybridge_ivybridge'. I would appreciate feedback on whether msbild.bat works for you. If you are able to try it please also update both postbuild.bat and mpir_config.py from my GIT repository before you do this as the revised versions are needed by msbuild.bat. If you need help in getting these files just email me. best regards, Brian -- You received this message because you are subscribed to the Google Groups "mpir-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to mpir-devel+unsubscr...@googlegroups.com. To post to this group, send email to mpir-devel@googlegroups.com. Visit this group at http://groups.google.com/group/mpir-devel. For more options, visit https://groups.google.com/d/optout.