|
-
Aug 2nd, 2007, 07:37 PM
#1
Thread Starter
WiggleWiggle
Car Computers - Language
What language are the computers inside of cars written in? i would guess C++
My usual boring signature: Something
-
Aug 2nd, 2007, 10:18 PM
#2
Banned
Re: Car Computers - Language
It probably depends on the manufacturer. I would have to guess C/C++.
-
Aug 3rd, 2007, 08:39 AM
#3
Re: Car Computers - Language
Most programs in embedded devices are coded using ANSI C or Assembly Language geared toward the processor the device uses.
-
Aug 3rd, 2007, 09:17 AM
#4
Re: Car Computers - Language
 Originally Posted by bgmacaw
Assembly Language geared toward the processor the device uses.
This was my immediate thought.
-
Aug 4th, 2007, 06:46 PM
#5
Re: Car Computers - Language
C is what I would expect. There seems to be a C compiler for most every microcontroller. It may not be ANSI C, but it is a distinct C flavor.
My usual boring signature: Nothing
 
-
Aug 4th, 2007, 07:51 PM
#6
Re: Car Computers - Language
maybe although there are some microcontrollers that have built-in basic interpreters.
-
Aug 5th, 2007, 10:08 AM
#7
Re: Car Computers - Language
Basic is too imprecise and bloated to be used in automotive applications, where speed and efficiency are essential.
I don't live here any more.
-
Aug 5th, 2007, 09:22 PM
#8
Re: Car Computers - Language
i wouldn't know about that. Especially since it is automatically compiled into machine code on controller chips no matter what language you start with. A Basic Stamp micro-controller ONLY supports basic instructions which it then compiles into machine code. Who knows for sure what language their compilers run on? And being an auto-mechanic, i can tell you that except for ultra-modern luxury cars, their computers aren't that precise anyway. All they really do is monitor multiple sensor inputs and adjust one output based on a built-in look-up table. Now, they have other functions on obd-ii systems, which allow you to view the same readings the computer does, such as voltage from the map sensor on a graph, but the basic functionality has not changed in about ten years. Think of a cruise-control computer for example. All it does is store a speed setting read from a d/a converter and try to match that speed by adding or subtracting voltage to a servo that is attached either directly to the throttle or to a vacuum valve which is then attached to the throttle. And believe me, THOSE computers are imprecise. It is not uncommon to vary 2 or 3 mph while on cruise constantly, especially on older vehicles due to the frequency of reading the current speed.
-
Aug 5th, 2007, 10:16 PM
#9
Thread Starter
WiggleWiggle
Re: Car Computers - Language
thanks all for your replied, continue chatting
My usual boring signature: Something
-
Aug 7th, 2007, 08:36 AM
#10
Re: Car Computers - Language
 Originally Posted by wossname
Basic is too imprecise and bloated to be used in automotive applications, where speed and efficiency are essential.
Many embedded programmers don't like C++ because it is 'bloated' as compared to plain old C or assembly.
Embedded programming harkens back to the old days of PC programming when the goal was to cram as much code into as small a space as you could and use as few processor cycles as you could.
-
Aug 10th, 2007, 02:17 PM
#11
Fanatic Member
Re: Car Computers - Language
I wouldn't say its C++. I would thing its a modified version of assembily. At least for the car itself. The likes of the Satnav etc i would say a modifed version of C maybe defifintly not c++ its to big!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|