Hi folks. I recently discovered cross-compiling and it's some pretty cool stuff.
From what I've read, mingw-w64, which is a mingw fork, is the most popular choice in Linux.
I also read a tweet by mmozeiko saying you can also use clang to do the trick:
clang -target x86_64-pc-windows-gnu -fuse-ld=lld -g -gcodeview -Wl,/debug,/pdb:test.pdb -o test.exe test.c
You need mingw's or Microsoft's headers and libraries but it works. Is it superior to mingw-w64 in some way?
Are there any differences between an exe compiled this way and, say, an exe compiled in Windows with cl? Where can I find more resources on the clang way of doing it?
That's some arcane shit going on in the x86_64-pc-windows-gnu compiler option, I can't even find it in google.
Lastly, is there a thing like a cross-debugger? Like, debugging a Windows exe inside Linux. Maybe even under Wine? The craziness in all of this amazes me.
Thanks in advance.