自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(10)
  • 资源 (1)
  • 收藏
  • 关注

转载 ELF brief introduction

refer wiki: https://en.wikipedia.org/wiki/Executable_and_Linkable_Format https://pdos.csail.mit.edu/6.828/2018/labs/lab1/ need refine when have time. The point is to notice the relationship between ...

2020-01-21 16:14:56 196

原创 c list sample code

c list sample code. The list interface may varies depends on use case. It seems the last one is more popular. However, i sometimes use the first one. #include <stdio.h> #include <stdlib.h&g...

2020-01-21 15:25:58 133

原创 c variable-length argument lists

a simple program demostrate c variable-length argument lists, and how to refer variable-length argument in c macro. #include <stdio.h> #include <stdlib.h> #include <stdarg.h> //fm...

2020-01-21 15:23:01 181

转载 gdb basic commands

finish: Continue running until just after function in the selected stack frame returns. Print the returned value (if any). This command can be abbreviated as fin. clear function/clear filename:functi...

2020-01-21 13:10:40 184

原创 lab1: exercise 3: Function "bootmain" not defined

In exercise 3 (link), trace into bootmain() in boot/main.c. When I set breakpoint, it reports not defined like following code snippet. break <location> sets a breakpoint at the specifiedlocatio...

2020-01-21 10:48:44 385

转载 C Program Compilation Process

refer to for more details: https://medium.com/@earthtojhuang/gcc-main-c-9f6ee2e6894b https://www.geeksforgeeks.org/compiling-a-c-program-behind-the-scenes/

2020-01-20 16:35:28 152

转载 ubuntu 64-bit: install 32-bit gcc lib

On 64-bit machines, you may need to install a 32-bit support library. The symptom is that linking fails with error messages like "__udivdi3 not found" and "__muldi3 not found". On Ubuntu Linux, try th...

2020-01-20 10:17:17 1107

原创 linux command

1. kill process by name using pkill hfyin@hfyin-VirtualBox:~/projects/c$ ps aux | grep wc hfyin 18789 0.0 0.0 4372 72 pts/2 S 08:45 0:00 ./wc hfyin 18799 0.0 0.0 4372 72 ...

2020-01-17 13:53:43 84

原创 linux read pipe

question what will happen if comment out line 13? why? #include <stdio.h> #include <stdlib.h> #include <unistd.h> int main() { int p[2]; pipe(p); write(p[1], "hello...

2020-01-16 16:14:00 494

原创 printf output interleave

questions Will following program's output interleave when OUT_STREAM is stdout? What about OUT_STREAM is stderr? why? #include <stdio.h> #include <stdlib.h> #include <sys/types.h>...

2020-01-16 14:01:41 348

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除