Originally posted by Weasel
View Post
Windows Services for UNIX<< The posix subsystem that then comes the base WSL1 work. cygwin gcc default build ing LP64 mode on windows was for not just better compatibility with the applications being ported but was to be competitive with the windows posix subsystem.
The reality Weasel here is it possible to produce source code that does not care if you are building with at LP64/LLP64 compiler yes it is just completely avoid using long.
Its is possible to make header files for windows that are for LP64 yes look at cygwin ones.
Is it possible to run gcc on Linux in LLP64 mode yes it is again. As I said LLP64 was in the Linux kernel for 2 particular versions with the X32 for bridging code.
Reason why different platforms outside windows used LLP64 is mostly compiler based or developer short cuts at the time.
Yes I am more than aware that assembly instructions have no notion of long or long long. But the reality is your complier on windows provided by Microsoft is not just at LLP64 complier. Just you would not be choosing to use the LP64 mode of it. Yes it caused some fun issue when people have read windows kernel leaked source and written documentation from it presuming LLP64 when that code is in fact LP64. Its important don't presume windows source is 100 percent LLP64 because that not even true inside Microsoft.
Comment