文档下载 文档下载导航
设为首页 | 加入收藏
搜索 请输入内容:  
 导航当前位置: 文档下载 > 所有分类 > IT/计算机 > 计算机软件及应用 > GCC asm inline
侵权投诉

GCC asm inline

1. 简介

1.1 版权和证书.

Copyright (C)2003 Sandeep S.

This document is free; you can redistribute and/or modify this under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This document is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

1.2 反馈和更正.

Kindly forward feedback and criticism to . I will be indebted to anybody who points out errors and inaccuracies in this document; I shall rectify them as soon as I am informed.

1.3 Acknowledgments.

I express my sincere appreciation to GNU people for providing such a great feature. Thanks to

Mr.Pramode C E for all the helps he did. Thanks to friends at the Govt Engineering College, Trichur for their moral-support and cooperation, especially to Nisha Kurur and Sakeeb S. Thanks to my dear

teachers at Govt Engineering College, Trichur for their cooperation.

Additionally, thanks to Phillip, Brennan Underwood and colin@nyx.net; Many things here are

shamelessly stolen from their works.

2. 概述

We are here to learn about GCC inline assembly. 这里的inline表示什么?

我们可以通知编译器插入一段代码到调用函数里面,以表明在哪里被实际调用,这样的函数就是inline函数. 听起来像不像一个Macro? 确实他们相似.

inline函数的好处? 这种inlining函数的方法减少了函数调用的开销,并且 And if any of the

actual argument values are constant, their known values may permit simplifications at compile time so that not all of the inline function’s code needs to be included. The effect on code size is less predictable, it depends on the particular case. 声明一个内联函数,我们需要在声明的时候使用关键字inline. 现在我们要说什么是inline assembly,它仅仅是一些写成inline函数的assembly routines. 他们handy, speedy 并且在系统编程钟非常有用. 我们主要集中学些基本的格式和(GCC) inline

assembly函数的使用.我们使用asm关键字声明inline assembly.

第1页

你可能喜欢

热门文档

相关文档

  • gcc中文手册

    GCC 中文手册 GCC Section: GNU Tools (1) Updated: 2003/12/05 NAME gcc,...这样就会关闭GNU C中某些不兼容ANSI C的特性,例如asm, inline和 typeof关键字...

  • GCC命令 - lemon_fantasy的专栏

    可能有些问题 gcc -pipe -o hello.exe hello.c -ansi 关闭gnu c中与ansi c不兼容的特性,激活ansi c的专有特性(包括禁止一些asm inline typeof关键字,以及...

  • GCC编译选项

    可能有些问题 gcc -pipe -o hello.exe hello.c -ansi 关闭 gnu c 中和 ansi c 不兼容的特性,激活 ansi c 的专有特性(包括禁止一些 asm inline typeof ...

  • gcc命令说明

    可能有 些问题 gcc -pipe -o hello.exe hello.c -ansi 关闭 gnu c 中与 ansi c 不兼容的特性,激活 ansi c 的专有特性(包括禁止 一些 asm inline typeof...

  • AT&T_GCC_ASM

    AT&T 汇编语言与 GCC 内嵌汇编简介 版本 时间 EMAIL 0.1 04/3/30 chforest...__inline__ void __set_bit(int nr, volatile void * addr) { __asm__...

  • ARM GCC 内嵌汇编手册

    ARM GCC 内嵌汇编手册_IT/计算机_专业资料。对于基于ARM的RISC处理器,GNU C...http://www.ethernut.de/en/documents/arm-inline-asm.html 对于基于 ARM 的...

  • arm and inline_asm

    arm and inline_asm_IT/计算机_专业资料。Arm指令集以及Inline指导... 从ARM ASM汇编到GNU ARM... 4页 免费 GCC asm inline 暂无评价 13页 ...

  • g++编译过程 gcc g++参数详解

    可能有些问 题 gcc -pipe -o hello.exe hello.c -ansi 关闭 gnu c 中与 ansi c 不兼容的特性,激活 ansi c 的专有特性(包括禁止一 些 asm inline ...

  • gcc参数

    gcc and g++分别是 gnu 的 c & c++编译器 gcc/g++在执行编译工作的时候... -fno-asm 此选项实现 ansi 选项的功能的一部分,它禁止将 asm,inline 和 ...

  • GCC命令

    例子用法: gcc -E hello.c > pianoapan.txt gcc -E hello.c more 慢慢... -fno-asm 此选项实现 ansi 选项的功能的一部分,它禁止将 asm,inline 和 ...

站点地图 | 文档上传 | 侵权投诉 | 手机版
本站所有资源均来自互联网,本站只负责收集和整理,均不承担任何法律责任,如有侵权等其它行为请联系我们.
文档下载 Copyright 2013 doc.guandang.net All Rights Reserved.  -  email