摘要: Linux 体系结构 Linux 嵌入式系统的组成 层次结构图 bios 1.硬件检测 2.初始化系统设备 3.装入os 4.调os向硬件发出的指令 bsp 板级支持包 硬件相关 开发板原理图 开发板原件列表 接口定义 地址分布 软件相关 某些os的bootloader及其源代码 某些系统封剪裁好的 阅读全文
posted @ 2019-04-06 10:54 Howbin 阅读(503) 评论(0) 推荐(0) 编辑
摘要: makefile linux makefile 的简单示例 假如有三个源文件program.c、pro1.c、pro2.c,program.c文件包含有自定义的头文件lib.h,要求生成可执行文件program。 文件目录结构 $(opt)=-g -Wall -c test: prgogram.o 阅读全文
posted @ 2019-04-04 16:07 Howbin 阅读(316) 评论(0) 推荐(0) 编辑
摘要: linux gdb linux 测试代码 #include <stdio.h> #include <stdlib.h> static char buf[255]; static char *str; int main() { printf("Please input a string:\n"); g 阅读全文
posted @ 2019-04-04 13:55 Howbin 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 32位浮点数 表示范围 计算机组成原理 enter description here 32位浮点数 表示范围 计算机组成原理 enter description here 32位浮点数 表示范围 计算机组成原理 enter description here enter description her 阅读全文
posted @ 2019-03-27 20:46 Howbin 阅读(2913) 评论(0) 推荐(0) 编辑
摘要: 背包问题——dfs 问题描述 解决思路 采用DFS搜索 其实也是回溯法 代码实现 #include<iostream> #include<vector> using namespace std; struct goods { int w; int v; int flag; }; vector<goo 阅读全文
posted @ 2019-03-23 21:22 Howbin 阅读(517) 评论(0) 推荐(0) 编辑
摘要: 简易计算器 一 问题 题目描述 读入一个只包含 +, -, *, / 的非负整数计算表达式,计算该表达式的值。 输入 测试输入包含若干测试用例,每个测试用例占一行,每行不超过200个字符,整数和运算符之间用一个空格分隔。没有非法表达式。当一行中只有0时输入结束,相应的结果不要输出。 输出 对每个测试 阅读全文
posted @ 2019-03-23 18:20 Howbin 阅读(237) 评论(0) 推荐(0) 编辑
摘要: 一 问题描述 本题要求编写程序,输出指定的由“*”组成的倒三角图案。 输入格式: 本题目没有输入。 输出格式: 按照下列格式输出由“*”组成的倒三角图案。 * * * * * * * * * * 二 代码实现 ``` c #include<stdio.h> int main() { printf(" 阅读全文
posted @ 2018-11-24 21:19 Howbin 阅读(2221) 评论(0) 推荐(0) 编辑
摘要: 练习2-1 Programming in C is fun! 一 问题描述 本题要求编写程序,输出一个短句“Programming in C is fun!”。 输入格式: 本题目没有输入。 输出格式: 在一行中输出短句“Programming in C is fun!”。 二 代码实现 #incl 阅读全文
posted @ 2018-11-24 21:03 Howbin 阅读(759) 评论(0) 推荐(0) 编辑
摘要: 控制转移指令 汇编语言 1.jmp 段内转移 short 8bit -128~+127 near 16bit -2^15~+2^15 -1 段间转移 远转移 32bit 寻址方式 段内相对寻址 jmp label 修改ip 段内间接寻址 jmp r16/m16 更换ip 段间直接寻址 jmp far 阅读全文
posted @ 2018-11-13 15:44 Howbin 阅读(548) 评论(0) 推荐(0) 编辑
摘要: 1. movs ;字符串传送 movs ;1. ds es ;2. si di ;3. ctd std ;4. cl ;5. rep data sesment mess1 db 'personal_computer' data ends extra sesment mess2 db sizeof m 阅读全文
posted @ 2018-11-12 11:15 Howbin 阅读(1082) 评论(0) 推荐(1) 编辑