Compiler/language runtime vs. Middleware [closed] - c

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
What are the specific operations a language runtime does that an operating system does not? How is a language runtime different from a middleware?

This depends on the operating system and the runtime. libc is a good example of a language runtime and the linked article on Wikipedia gives a good overview of what it does. Generally the goal of a language runtime is to provide implementations of standard basic functionality which is likely to be implemented differently between the operating systems the language supports, or functionality which is extremely common, but not provided by the operating system.
Middleware is a very general concept but it simply refers to software placed between two systems as an abstraction layer. You could consider a language runtime as a form of middleware in some contexts.

Related

Why C is best for OS programming? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I am a computer science student and I am trying to follow Operating System Module. Still I am confused about which language should I use for testing, C or C++. Most people say C is good.Why c is important for operating systems??
C is used for operating systems for four major reasons:
It is a low level portable representation of programs executable on Von Neumann machines (the vast majority of modern machines). With small, vendor-specific modifications, it can be used for non-Von Neumann machines. (Usually the only major omission for such machines is function pointers)
It was used for Unix. Most modern operating systems (that is, Windows NT, OSX, Linux, BSD, etc.) are Unix clones of some sort.
The POSIX standards are specified in terms of it.
It doesn't require extensive runtime support.

variables and functions naming convention in c applications [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I have made a C application using vs 2010 and have followed lowercase with underscores as the naming convention for variables and functions in the application. I am asked to follow the camel case in the entire application. I want to ask whether this is the correct approach for the naming convention in c if yes then Is there any tool that can convert all the variables and functions to camel case in the existing c application.
Coding standards vary from company to company. Most mature companies have one, and there is probably some old code lying about somewhere that doesn't follow it.
As long as the coding is done to a consistent style, so you know the name of the function that checks if the car-door is open in your application, whether it is called car_door_open, CarDoorOpen, cardoorisopen matters a lot less. The key is consistency.
I'm not aware of a tool that can rename all identifiers in your code, but modern IDE's have a "rename this identifier", which can be really helpful for these type of things.

How do I detect critical sections in a C program by analyzing it programmatically? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 10 years ago.
I want to create a tool which analyzes a C program for critical sections during the compilation phase. I am looking for the right algorithm which would let me do this. It can be at any phase of the compiler.
You may be interested in this article “Static analysis of run-time errors in embedded real-time parallel C programs”.
The Frama-C plug-in mthread was developed simultaneously and independently. It works on comparable principles.
Each of the above two tools is man-years of work over an existing base that already represents at least ten man-years of work. As some have already commented, if you want to do anything significant and useful for the kind of moderately large program that you cannot just read to convince yourself that it is correct, you are going to have a lot of work.

In embedded application why c is most poppular? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
see ,
still yet i have seen that most of the embedded application are written in c.
Most of the libraries are written in c.
Device-driver are written in c.
So i want to ask you is there any logical reason behind this?
(My apologies if this post sounds silly/stupid. I thought I'd ask here. Ignoring these core bits never made anyone a better programmer.)
There are many reasons, including but not limited to:
It has access to many low level functions not accessible from many other languages.
It has existed for many many years and has lots of developers that are familiar with it.
If written well it's extremely efficient.
It gives almost complete control over memory etc.
It's very portable, largely due to the myriad of compilers written for it.
Because of Dennis Ritchie. C is easily the most portable language.

What's the deal with glibc? [closed]

As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance.
Closed 11 years ago.
I know it's a standar c library, but I don't understand why c doesn't have a free library, not one that is lgpl. Is there any such library and if not, than that means every company/particular developer has to buy even the most basic libraries to develop commercial apps ?
every company/particular developer has to buy even the most basic libraries to develop commercial apps ?
Well, they have to buy (or get for free) the compiler anyway, and libc comes with it.
Also, writing an universal C library is impossible, since exit(), setjmp(), etc. depend on the particular compiler and platform.

Resources