linux下的asm目录,asm代表什么意思

zifehng 2014-08-26 11:02:41
很多代码这样包含头文件:
#include <asm/irq.h>

但为什么在include目录下没有asm文件夹
...全文
1357 11 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
11 条回复
切换为时间正序
请发表友善的回复…
发表回复
图灵转世 2014-08-31
  • 打赏
  • 举报
回复
表示汇编。x86汇编。
eziowayne 2014-08-30
  • 打赏
  • 举报
回复
C语言无法完成的一些关于寄存器之类的操作全部交给汇编语言。所以kernel有一部分就是汇编写的。你的一些系统调用也许就要用到它们!
图灵转世 2014-08-29
  • 打赏
  • 举报
回复
asm表示汇编。
zifehng 2014-08-28
  • 打赏
  • 举报
回复
引用 6 楼 micropentium6 的回复:
I don't know, but I found this on TLDP include The include subdirectory contains most of the include files needed to build the kernel code. It too has further subdirectories including one for every architecture supported. The include/asm subdirectory is a soft link to the real include directory needed for this architecture, for example include/asm-i386. To change architectures you need to edit the kernel makefile and rerun the Linux kernel configuration program.
include下没有asm,只有inlucde/asm-genric
moquan1100 2014-08-27
  • 打赏
  • 举报
回复
可以在内核中都asm,有这样的文件夹
  • 打赏
  • 举报
回复
I don't know, but I found this on TLDP include The include subdirectory contains most of the include files needed to build the kernel code. It too has further subdirectories including one for every architecture supported. The include/asm subdirectory is a soft link to the real include directory needed for this architecture, for example include/asm-i386. To change architectures you need to edit the kernel makefile and rerun the Linux kernel configuration program.
zifehng 2014-08-27
  • 打赏
  • 举报
回复
引用 4 楼 micropentium6 的回复:
[quote=引用 3 楼 zifehng 的回复:] [quote=引用 2 楼 micropentium6 的回复:] it's a kernel header file, usually, it's under /usr/src/kernels/$(uname -r)/arch/x86/include/asm/ cpp looks for header file following a path list and this location or its parent folder could be either under the path or defined in the makefile
这个asm的英文全称是什么啊,代表什么意思[/quote] assembly language[/quote] 为什么内核的头文件目录叫asm啊,它里面的文件也不是汇编语言写的,全是C语言啊
  • 打赏
  • 举报
回复
引用 3 楼 zifehng 的回复:
[quote=引用 2 楼 micropentium6 的回复:] it's a kernel header file, usually, it's under /usr/src/kernels/$(uname -r)/arch/x86/include/asm/ cpp looks for header file following a path list and this location or its parent folder could be either under the path or defined in the makefile
这个asm的英文全称是什么啊,代表什么意思[/quote] assembly language
zifehng 2014-08-27
  • 打赏
  • 举报
回复
引用 2 楼 micropentium6 的回复:
it's a kernel header file, usually, it's under /usr/src/kernels/$(uname -r)/arch/x86/include/asm/ cpp looks for header file following a path list and this location or its parent folder could be either under the path or defined in the makefile
这个asm的英文全称是什么啊,代表什么意思
zhxianbin 2014-08-26
  • 打赏
  • 举报
回复
不一定在include目录
  • 打赏
  • 举报
回复
it's a kernel header file, usually, it's under /usr/src/kernels/$(uname -r)/arch/x86/include/asm/ cpp looks for header file following a path list and this location or its parent folder could be either under the path or defined in the makefile

1,324

社区成员

发帖
与我相关
我的任务
社区描述
主要是开发驱动技术
社区管理员
  • 驱动程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧