- 博客(7)
- 收藏
- 关注
原创 Bash shell
1. 在linux中下载vim使用 sudo apt install vim通过vi hello.c进入编辑界面使用esc退出编辑,:wq保存并退出。2.gcc -E hello.c -o hello.i执行如下 gcc -S hello.i -o hello.s执行如图gcc -c hello.s -o hello.o,gcc hello.o -o hello执行。3. 使用./hello运行程序得到程序结果,如图:4.使用gdb调试...
2022-05-05 22:38:14
57
原创 gcc makefile gdb ide eclipse
1 基础命令介绍最基础的Linux终端命令。su - root:切换到root用户(不用也可以)ls:查看当前目录位置cd:切换目录利用这几个命令,我们先切换到某个文件夹su - root和ls输入以下指令序列su - root// 输入root密码如果您是第一次安装Ubuntu系统,没有初始的root账户,请输入sudo passwd然后设置密码,再输入su - root进入root账户下。ls指令,能够查看当前目录下的文件,当然,您可能什么都得不到,这代表该目录下没有文.
2022-05-05 22:23:16
70
原创 多线程作业
一、查看源代码1.修改变量名二、编译每个文件gcc 1.pthread_create_exit.c -lpthread -o pthread_creategcc 2.pthread_join.c -lpthread -o pthread_join -lmgcc 3.pthread_attr_init_destroy_getstack-foo_bar.c -lpthread -o pthread_attrgcc 4.pthread_mutex.c -lpthread...
2022-05-05 22:14:13
104
原创 【无标题】TCP UDP IP
目录1查看源代码2编译并在Ubuntu下运行3修改为多线程1.查看while源代码#include <stdlib.h>#include <stdio.h>#include <errno.h>#include <string.h>#include <netdb.h>#include <sys/types.h>#include <netinet/in.h>#include <...
2022-05-05 22:07:20
39
原创 I2c驱动app
查看i2c源代码在Ubuntu运行i2c的优点1、I2C总线只需要一根数据线和一根时钟线两根线,总线接口已经集成在芯片内部,优化主板空间和成本。2、无论总线上有多少设备,都只使用两条线,保持低引脚/信号数。3、真正的支持多主机设备,但是同一时刻只允许—台主机。4、12C总线具有低功耗、抗干扰强的优点,传输距离长的特点。5、连接到相同总线的IC数量只受到总线的最大电容400pF限制。6、串行的8位双向数据传输位速率在标准模式下可达100kbit/s,快速模式下可达400kbit/s,...
2022-05-05 21:55:42
56
原创 【无标题】QT Ubuntu
目录1.安装qt5下载连接2.配置终端,在终端中输入 qtcreator 直接打开ide3.新建项目执行 你好世界4.添加和修改文件 执行alarm示例1.安装qt5首先下载安装qt5下载qt5 就包括了 qtcreator(IDE)和qt的库,在qt5之前还得分部安装https://download.qt.io/archive/qt/5.14/5.14.2/下载后到你下载的文件夹下添加执行权限sudo chmod +x qt-opensource-linux-x6...
2022-05-05 21:45:47
88
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人