
C/C++
Zerore
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
C++_程序的运行过程
处于编译阶段的源文件都是单独编译的,只要最后将编译得到的目标文件进行链接,整个程序就可以运行。 一个C/C++程序运行经历的过程,预处理、编译、汇编、链接、执行。 其中编译阶段所有代码都是单独编译的,只是在最终的链接阶段所有的目标文件 预处理 g++ -E main.cpp -o main.i g++ -E student.cpp -o student.i 编译,声明汇编代码文件 g++ -S main.i -o main.s g++ -S student.i -o student.s 汇编,将汇编代码文件原创 2021-10-29 16:49:05 · 3057 阅读 · 0 评论 -
c++多线程基本样例
#include <stdio.h> #include <string.h> #include <stdlib.h> #include <unistd.h> #include <pthread.h> void *myfunc1(void *arg); void *myfunc2(void *arg); int main() { pthread_t pthid1; pthread_t pthid2; long clientfd = 3;原创 2021-05-28 14:45:27 · 239 阅读 · 0 评论