note/专业积累/原理/编译.md

19 lines
1011 B
Markdown
Raw Normal View History

2023-07-05 09:34:06 +08:00
# VS
```shell
^F:\CODING\C++\ZASM\MAIN.CPP
/c /ZI /JMC /nologo /W3 /WX- /diagnostics:column /sdl /Od /D _DEBUG /D _CONSOLE /D _UNICODE /D UNICODE /Gm- /EHsc /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /permissive- /Fo"X64\DEBUG\\" /Fd"X64\DEBUG\VC143.PDB" /external:W3 /Gd /TP /FC F:\CODING\C++\ZASM\MAIN.CPP
```
# Xmake
```shell
./cl.exe -c -nologo -O2 -fp:fast /EHsc -DNDEBUG -Fobuild\.objs\xasm\windows\x64\release\src\main.cpp.obj src\main.cpp
[ 25%]: cache compiling.release src\main.cpp
"D:\\Microsoft Visual Studio\\VS2022\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\cl.exe" -c -nologo -O2 -fp:fast /EHsc -DNDEBUG -Fobuild\.objs\xasm\windows\x64\release\src\main.cpp.obj src\main.cpp
[ 50%]: linking.release xasm.exe
"D:\\Microsoft Visual Studio\\VS2022\\VC\\Tools\\MSVC\\14.36.32532\\bin\\HostX64\\x64\\link.exe" -nologo -dynamicbase -nxcompat -machine:x64 /opt:ref /opt:icf -out:build\windows\x64\release\xasm.exe build\.objs\xasm\windows\x64\release\src\main.cpp.obj
```