On 11.01.2021 17:07, Liu Hao wrote:
在 2021-01-10 23:46, Peng Yu 写道:I just want to know the basic of the compilation commands. I see these. $ i686-w64-mingw32-gcc main.c $ file a.exe a.exe: PE32 executable (console) Intel 80386, for MS Windows $ x86_64-w64-mingw32-gcc main.c $ file a.exe a.exe: PE32+ executable (console) x86-64, for MS WindowsYou invoked `i686-w64-mingw32-gcc` on your machine (the 'host'), which produced a.exe suitable for Windows on i686 (the 'target'). `x86_64-w64-mingw32-gcc` is similar.
Actually, if you want to be pedantic, his machine is 'build', and 'a.exe' is produced to be run on 'host'. The 'target' is only used for compilers (if 'a.exe' is a compiler, then it would produce code for 'target', which might not be the same as 'build' and 'host').
-- O< ascii ribbon - stop html email! - www.asciiribbon.org
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public