Note that there are some explanatory texts on larger screens.

plurals
  1. POIf I am writing a C program for an embedded system that has linux running on it, how would the functions and libraries used in my program differ?
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COWe can also do SPI, I2C, and use othe peripherals on the micrcontroller without needing Linux. We can also do printf, scanf among others without Linux. So what does a linux do and how does it effect the C code? I mean, we do have things like sed, grep among others in Linux, why don't we call them instead of writing all C code?
      singulars
    2. COOperating System provides you an interface between hardware and your application, that's what Linux do. But that does not mean you cannot access hardware directly, that's why you are able to access LCD library files. Without linux you cannot use `libc` because there will be no interface to run high level app like `gcc`. mC and mP only recognize `0`s and `1`s. When you burn/dump a `hex` file, you still need some interface to translate your `hex` into these `0`s and `1`s in correct format.
      singulars
    3. CO@quantum231 You may or may not have stdio.h on a microcontroller. It depends on what development toolchain you use. Some have a very simple stdio.h and similar. But your program is usually the only thing running, i.e. unless you write it yourself, you can't run multiple processes, no disk-file I/O, perhaps no drivers for various hardware
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload