11 2021 档案
摘要:#include <iostream> extern "C" { #include "stdio.h" void print() { const char* s = "Hello asm\n"; int len = 10; printf("Hello C\n"); asm volatile( "mo
阅读全文
摘要:binutils是静态调试工具,而同属于GNU的gdb则是一款动态的调试工具。 GDB的启动方式 gdb->file exefile->set args->start->continue gdb exefile gdb exefile corefilegdb exefile pid 断点 软件断点:
阅读全文
摘要:给你一个链表的头节点 head ,旋转链表,将链表每个节点向右移动 k 个位置。 示例 1: 输入:head = [1,2,3,4,5], k = 2输出:[4,5,1,2,3]示例 2: 输入:head = [0,1,2], k = 4输出:[2,0,1] 提示: 链表中节点的数目在范围 [0,
阅读全文