软件开发指导 第3章 集成

3 集成编译

3.1 makefile

基本思想
目标的建立
变量的使用
常用函数的使用

​ 字符替换函数:substr

shell 等指令的调用

make 不管具体的执行命令和目的,将命令放置到当前运行系统上执行,返回错误则终止

“-” 可以忽略错误: - rm source.c

  • echo
  • perl
  • python
  • shell

3.2 asap2接口实现

A2L的结构与物理含义
  • 测量量
  • 标定量 :scalar ,curve,map
  • 计算方法:描述物理值与存储值的关系
脚本处理方式

perl 实现begin end的内容缓冲

3.3 代码查看与版本控制

目录结构

3.3.1 git的使用
3.3.1.1 基本使用
git init # 初始化
git add file # 添加文件缓冲区,. 通配符:所有文件
git commit -m 'comment' # 提交到创库,添加注释

3.3.1.2 远程使用

绑定远程项目

git remote add origin ssh://[email protected]:2022/yanbo.peng/simulink_Menu.git

推送项目

git push -u origin --all
git push origin [branch_name]
git push origin [local_branch_name]:[remote_branch_name]:

clone 项目

git clone  remote_project

3.4 编辑工具

3.4.1 notepad的使用技巧
3.4.2 vim的快捷使用
3.4.3 compare实现代码对比
3.4.4 insightsource

3.5 链接过程

链接语法

链接脚本

In case of single-core the linking is done in two steps. The first is the pre-linking where sections
of input objects are collected into output sections and the second is the locating where output
sections are located to memory regions.

example
OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc", "elf32-powerpc")
OUTPUT_ARCH(powerpc)
    start = 0x8FC0600;
ENTRY(start)
MEMORY
{
   
	//final section 的物理空间分配
}
SECTIONS
{
   
	//final section 的input section
}
symbol = 0

组成结构

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值