C 语言和嵌入式 C 语言有什么区别?

发布于 2024-07-07 15:24:58 字数 25 浏览 9 评论 0原文

任何人都可以告诉我它们之间的区别吗?

Can any body tell me the differences between them?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(7

帅冕 2024-07-14 15:24:59

嵌入式C一般是C语言的扩展,它们或多或少是相似的。 然而,确实存在一些差异,例如:

  • C 通常用于台式计算机,而嵌入式 C 用于基于微控制器的应用程序。

    C 通常用于台式计算机,而嵌入式 C 则用于基于微控制器的应用程序

  • C 可以使用桌面 PC 的资源,如内存、操作系统等。而嵌入式 C 必须使用有限的资源,如嵌入式处理器上的 RAM、ROM、I/O。

  • 嵌入式 C 包含比 C 多的额外功能,例如定点类型、多存储区和 I/O 寄存器映射。

    嵌入式 C 包含比 C 多的额外功能

  • C (ANSI C) 编译器通常会生成依赖于操作系统的可执行文件。 嵌入式 C 要求编译器创建要下载到需要运行的微控制器/微处理器的文件。

请参阅C 和嵌入式 C 之间的区别

Embedded C is generally an extension of the C language, they are more or less similar. However, some differences do exist, such as:

  • C is generally used for desktop computers, while embedded C is for microcontroller based applications.

  • C can use the resources of a desktop PC like memory, OS, etc. While, embedded C has to use with the limited resources, such as RAM, ROM, I/Os on an embedded processor.

  • Embedded C includes extra features over C, such as fixed point types, multiple memory areas, and I/O register mapping.

  • Compilers for C (ANSI C) typically generate OS dependant executables. Embedded C requires compilers to create files to be downloaded to the microcontrollers/microprocessors where it needs to run.

Refer difference between C and embedded C

扶醉桌前 2024-07-14 15:24:59

基本上是没有的。 嵌入式是指主机/微控制器,而不是语言。 嵌入式系统可能有更少的资源和接口供程序员使用,因此 C 的使用方式会有所不同,但它仍然是相同的 ISO 定义语言。

Basically, there isn't one. Embedded refers to the hosting computer / microcontroller, not the language. The embeddded system might have fewer resources and interfaces for the programmer to play with, and hence C will be used differently, but it is still the same ISO defined language.

ゞ花落谁相伴 2024-07-14 15:24:59

1:C 是一种计算机编程语言。
而嵌入式C是C编程语言的一组语言扩展。

2:C有自由格式的程序源代码,在台式电脑上。
而嵌入式C有基于嵌入式处理器(微
控制器/微处理器)。

3:C有正常的优化,在编程中。
同时嵌入式C语言在编程方面进行了高级优化。

4:C语言编程必须有所需的操作系统。
而嵌入式 C 可能是也可能不是操作系统所必需的。

5:C可以使用操作系统、内存等资源,即桌面计算机上的所有资源都可以
被C使用。
而嵌入式 C 可以使用有限的资源,例如嵌入式计算机上的 RAM、ROM 和 I/O
处理器。

1: C is a type of computer programming language.
While embedded C is a set of language extensions for the C Programming language.

2: C has a free-format program source code, in a desktop computer.
while embedded C has different format based on embedded processor (micro-
controllers/microprocessors).

3: C have normal optimization, in programming.
while embedded C high level optimization in programming.

4: C programming must have required operating system.
while embedded C may or may not be required operating system.

5: C can use resources from OS, memory, etc, i.e all resources from desktop computer can
be used by C.
while embedded C can use limited resources, like RAM, ROM, and I/Os on an embedded
processor.

红衣飘飘貌似仙 2024-07-14 15:24:59

嵌入式环境,有时没有MMU,内存少,存储空间少。
在C编程级别,几乎相同,交叉编译器完成他们的工作。

Embedded environment, sometime, there is no MMU, less memory, less storage space.
In C programming level, almost same, cross compiler do their job.

失去的东西太少 2024-07-14 15:24:59

c无法访问物理地址,嵌入式c可以访问物理地址
嵌入式C变量地址存储在堆栈中,
嵌入式 c 变量应在块的开头声明
使用嵌入式c输入输出端口,但在c中使用printf和scanf

c cant access physical address, embedded c can access physical address
embedded c variable address is stored in stack,
in embedded c variable should be declaired at the begining of the block
embedded c input output port are used but in c printf and scanf used

四叶草在未来唯美盛开 2024-07-14 15:24:59

C 是唯一用于系统编程的编程语言。
但嵌入式C用于实现实时应用程序等项目

C is a only programming language its used in system programming.
but embedded C is used to implement the projects like real time applications

抹茶夏天i‖ 2024-07-14 15:24:58

在 C 标准中,独立实现不必提供托管实现必须提供的所有库函数。 C 标准不关心嵌入式,但嵌入式系统供应商通常会提供独立的实现以及他们愿意提供的任意数量的库。

C 是一种广泛使用的通用高级编程语言,主要用于系统编程。

嵌入式C是C编程语言的扩展,为开发嵌入式设备的高效程序提供支持。它不属于C语言的一部分

您还可以参考以下文章:

In the C standard, a standalone implementation doesn't have to provide all of the library functions that a hosted implementation has to provide. The C standard doesn't care about embedded, but vendors of embedded systems usually provide standalone implementations with whatever amount of libraries they're willing to provide.

C is a widely used general purpose high level programming language mainly intended for system programming.

Embedded C is an extension to C programming language that provides support for developing efficient programs for embedded devices.It is not a part of the C language

You can also refer to the articles below:

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文