
CSAPP
文章平均质量分 54
CSAPP
Dream_10min
这个作者很懒,什么都没留下…
展开
-
csapp-C程序中执行机器码
#include <stdio.h>#include <string.h>#include <sys/mman.h>int main() { unsigned char code[] = {// 机器码 0x55, 0x48, 0x89, 0xe5, 0x89, 0x7d, 0xfc, 0x89, 0x75, 0xf8, 0x8b, 0x4原创 2022-04-24 15:59:36 · 227 阅读 · 0 评论 -
csapp-C程序中执行机器码
#include <stdio.h>#include <string.h>#include <sys/mman.h>int main() { unsigned char code[] = {// 机器码 0x55, 0x48, 0x89, 0xe5, 0x89, 0x7d, 0xfc, 0x89, 0x75, 0xf8, 0x8b, 0x4原创 2022-04-24 15:11:05 · 228 阅读 · 0 评论 -
csapp-bomblab
phase_1(gdb) disas phase_1Dump of assembler code for function phase_1: 0x08048b90 <+0>: sub $0x1c,%esp;开辟1c栈空间 0x08048b93 <+3>: movl $0x804a1ec,0x4(%esp);用于比较的字符串放到esp+4 0x08048b9b <+11>: mov 0x20(%esp),%eax;原创 2022-04-24 10:06:46 · 501 阅读 · 0 评论 -
计算机系统作业2
1有如下c语言程序,其中的H和J定义为一个常数。#include "stdio.h"#define H ? //定义常数H#define J ? //定义常数Jint array1[H][J];int array2[J][H];void f(int x, int y){ array1[x][y] = x + 2 * y; array2[y][x] = y - x * x;}int main(){ return 0;}在Ubuntu 32位系统下经过g原创 2022-04-06 11:14:51 · 1029 阅读 · 0 评论 -
CSAPP讨论课-switch跳转表
题目选题三对于以下c程序:#include <stdio.h> int main() { int i=0; int j=0; switch(i) { case 1: j+=1; break; case 2: j+=2; break; case 3: j+=3; break; case 4:原创 2022-03-31 12:09:47 · 1808 阅读 · 0 评论 -
CSAPP讨论课-switch跳转表
CSAPP讨论课-switch跳转表原创 2022-03-29 14:41:15 · 1726 阅读 · 0 评论 -
CSAPP-datalab
CSAPP-datalab原创 2022-03-29 14:27:28 · 745 阅读 · 0 评论