了解printf的硬件 [英] Understanding the hardware of printf

查看:124
本文介绍了了解printf的硬件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否有任何可用的资源在网上解释的东西会发生什么,像C的printf的,解释这是怎么回事在非常低的水平(BIOS /内核调用)

I was wondering if there was any resources available online that explains what happens with something, like printf of C, that explains what's going on in the very low level (BIOS/kernel calls)

推荐答案

Linux的:

的printf()---> printf()的C库--->写()的C库---> write()系统调用内核。

printf() ---> printf() in the C library ---> write() in C library ---> write() system call in kernel.

要了解用户空间和内核空间之间的接口,你就需要有系统如何调用工作的一些知识。

To understand the interface between user space and kernel space, you will need to have some knowledge of how system calls work.

要了解什么是在最低的水平怎么回事,你需要分析源$ C ​​$ C在内核

To understand what is going on at the lowest levels, you will need to analyze the source code in the kernel.

Linux系统调用快速参考 的(PDF链接),因为它标识了在内核源代码可能会开始寻找可能是有用的。

The Linux system call quick reference (pdf link) may be useful as it identifies where in the kernel source you might begin looking.

这篇关于了解printf的硬件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆