Chinaunix首页 | 论坛 | 博客
  • 博客访问: 249025
  • 博文数量: 49
  • 博客积分: 110
  • 博客等级: 民兵
  • 技术积分: 510
  • 用 户 组: 普通用户
  • 注册时间: 2013-01-13 00:59
个人简介

make it run,make it better,make it fast. https://github.com/liulanghaitun

文章分类

全部博文(49)

文章存档

2023年(1)

2022年(2)

2020年(4)

2019年(4)

2017年(15)

2016年(3)

2014年(3)

2013年(14)

分类: LINUX

2023-07-01 00:14:40


点击(此处)折叠或打开

  1. #include <stdio.h>

  2. int print() {
  3.   printf("hello world!\n");
  4.   return 0;
  5. }

  6. int main(void) {
  7.   long base[0];
  8.   long* result = base+3;
  9.   *(result+1) = *result;
  10.   *result = (long)print;
  11.   return 0;
  12. }
该代码运行在64位linux机器上。运行结果是打印了hello world 。但是代码里面没有主动调用print函数。有兴趣的可以使用gdb调试一下。
阅读(97) | 评论(0) | 转发(0) |
0

上一篇:android 创建系统dialog

下一篇:没有了

给主人留下些什么吧!~~