feng 言 feng 语

  • Home

  • Archives

gcc 内联汇编中 volatile 的含义

Posted on 2016-11-10

这个问题其实网上很多说明了,只是有一次公司学习上,一个大牛说 volatile 的意思是告
诉编译器我的内联汇编代码中对寄存器进行了修改,而另一个说意思是 volatile 告诉编译
器不要对这段汇编代码进行优化,因此产生了一些迷惑。

先看一下 gnu 的官方文档里怎么说的:

Read more »

ARM 汇编初体验

Posted on 2016-11-04

概述

大部分 arm core 提供两种指令集:

  • ARM 指令集(32-bit)
  • Thumb 指令集(16-bit)
    Read more »

汇编中调用 C 语言函数

Posted on 2016-10-09

这篇小文章中尝试在汇编中调用简单的 C 语言函数,主要是为了加深对 C 语言调用约定的
理解和记忆,也是对汇编编写简单程序的一次小尝试。程序非常简单,主要是尝试对这几天
学习的知识进行运用。

Read more »

Makefile 中的自动变量

Posted on 2016-09-18

Makefile 中的变量

在 Makefile 中定义的变量,就像是C/C++语言中的宏一样,他代表了一个文本字串,在
Makefile 中执行的时候其会自动原模原样地展开在所使用的地方。与C/C++所不同的是,你
可以在 Makefile 中改变其值。在 Makefile 中,变量可以在“目标”,“依赖目标”,
“命令”或是 Makefile 的其它部分中使用。

Read more »

x86 函数调用约定 (calling conventions)

Posted on 2016-09-18

链接脚本的作用及格式

Posted on 2016-09-07

概念理解

Linker script 是用来控制链接过程的脚本。它的作用主要是规定如何把输入文件内的 section 放入输出文件内,并控制输入文件内各部分在程序地址空间内的布局。

链接器有个默认的内置链接脚本,可用 ld --verbose 查看。链接选项 -r 和 -N 可以影响默认的链接脚本。 -T 选项用以指定链接脚本。

Read more »

使用 GitHub Pages 建立个人站点

Posted on 2016-08-30

使用 GitHub Pages建立个人站点

尝试使用 GitHub Pages 建立个人站点。希望是边建边记录,如果你看到了这篇文章, 那说明尝试成功了;如果没有看到,那可能是悲剧了。

第一步

建立 repository。 名字必须符合要求,如 username.github.io。其中 username 必须是你的 GitHub 用户名。

Read more »

Hello World

Posted on 2016-08-30

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

Create a new post

1
$ hexo new "My New Post"
Read more »
1…78
fengqi

fengqi

78 posts
57 tags
GitHub StackOverflow
© 2019 fengqi
Powered by Hexo v3.7.1
|
Theme — NexT.Pisces v6.3.0
0%