On Wed, 2 Aug 2023, LIU Hao wrote:
在 2023-08-02 16:10, Martin Storsjö 写道:
So I think we perhaps shouldn't extend the use of __MACHINEX86X, if there's
meant to be a difference between that and __MACHINEI. On the other hand,
newer MSVC styles don't distinguish between those two, so perhaps it
doesn't matter.
I believe there must be a reason why `__MACHINEX86X_NOIA64` exists. At this
moment I can only say that it might be related to the fact that x86 and
x86_64 EXE files can be executed on Itanium with no modification, due to
hardware emulation/translation/transpilation/whatever.
Possibly - and maybe from various historical reasons, when MSVC has
supported various architectures during the years.
Itanium is dead anyway, but since Windows 11 on ARM something similar has
happened. It may be a good chance for us to update those macros to match what
MSVC has; not just renaming `__MACHINEI` to `__MACHINEX86_X64`, but also
removing Itanium macros.
Yes, updating these to match what MSVC does these days probably would be
good. And anything relating to Itanium can probably be removed if it makes
things more confusing.
// Martin
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public