国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 開發設計 > 正文

64 位應用中用什么替代 "int 3" 指令?

2019-11-08 20:17:33
字體:
來源:轉載
供稿:網友

What can I use instead of “int 3” instruction in a 64-bit application?

The 64-bit version of Visual C++ compiler does not support inline assembler, so you cannot write code like “__asm int 3”. But there is one more, less known mechanism to create interrupts during debugging – __debugbreak(). This is an intrinsic function of the VisualC++ compiler defined in vc/include/intrin.h which actually has the same functionality as int 3. Unlike int 3, this function is cross-platform. The Win32 function DebugBreak() has a similar functionality.

64 位版本的 Visual c + + 編譯器不支持內聯匯編,所以你不能寫 __asm int 3 這樣的代碼。但是還有一個,不太為常人所知的機制在調試期間創建中斷 — — __debugbreak() 。這是定義在 vc/include/intrin.h 中的 VisualC + + 編譯器內部函數,它具有 int 3 相同的功能。不像 int 3 ,此功能是跨平臺的。Win32 函數 DebugBreak() 有一個類似的功能。

#include <intrin.h>#include <stdio.h>int main(){ __debugbreak();
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 原平市| 安图县| 阳新县| 本溪| 晋宁县| 类乌齐县| 隆安县| 九龙县| 岳阳市| 昌邑市| 德州市| 泌阳县| 汉寿县| 柳林县| 天全县| 探索| 凤阳县| 巩义市| 楚雄市| 若尔盖县| 中方县| 龙南县| 梅州市| 昌乐县| 华池县| 盐津县| 永寿县| 乌鲁木齐县| 诸城市| 岑溪市| 神农架林区| 佛坪县| 额济纳旗| 南江县| 曲沃县| 中宁县| 盐山县| 阳江市| 天全县| 陵水| 门头沟区|