其實在Visual studio 很早的版本裡就有加入的這個功能,至於從何版本開始我並沒有實際考證,本篇則我試著以Visual studio 2005, 2015為範例將自己的code輸出assembly code。
[2005]
step 1.目標cpp檔點右鍵選 [Properties]
step 2.[C/C++] → [Output Files] →[Assembler Output] →選擇你要的選項
[Assembler with source code] 將輸出Assembler 並區段附上你的c code比較好對應
step 3.可在檔案輸出資料夾看到一個檔案類型名稱為Assembler Source即是
[2015] 由於我2015正好是中文版的,來個中文步驟
步驟 1.目標cpp檔點右鍵選 [屬性]
步驟 2.選取[C/C++] [組合語言輸出][組譯碼、機器碼和原始程式碼]
沒有留言:
張貼留言