Results 1 to 11 of 11

Thread: Car Computers - Language

  1. #1

    Thread Starter
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Car Computers - Language

    What language are the computers inside of cars written in? i would guess C++
    My usual boring signature: Something

  2. #2
    Banned
    Join Date
    Aug 2007
    Location
    near Boston, MA
    Posts
    5

    Re: Car Computers - Language

    It probably depends on the manufacturer. I would have to guess C/C++.

  3. #3
    Fanatic Member bgmacaw's Avatar
    Join Date
    Mar 2007
    Location
    Atlanta, GA USA
    Posts
    524

    Re: Car Computers - Language

    Most programs in embedded devices are coded using ANSI C or Assembly Language geared toward the processor the device uses.

  4. #4
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Car Computers - Language

    Quote Originally Posted by bgmacaw
    Assembly Language geared toward the processor the device uses.
    This was my immediate thought.

  5. #5
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    40,104

    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

  6. #6
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    Re: Car Computers - Language

    maybe although there are some microcontrollers that have built-in basic interpreters.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  7. #7
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    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.

  8. #8
    coder. Lord Orwell's Avatar
    Join Date
    Feb 2001
    Location
    Elberfeld, IN
    Posts
    7,628

    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.
    My light show youtube page (it's made the news) www.youtube.com/@lightsofelberfeld
    Contact me on the socials www.facebook.com/lordorwell

  9. #9

    Thread Starter
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: Car Computers - Language

    thanks all for your replied, continue chatting
    My usual boring signature: Something

  10. #10
    Fanatic Member bgmacaw's Avatar
    Join Date
    Mar 2007
    Location
    Atlanta, GA USA
    Posts
    524

    Re: Car Computers - Language

    Quote 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.

  11. #11
    Fanatic Member CodedFire's Avatar
    Join Date
    Aug 2007
    Location
    In Cog Neato
    Posts
    568

    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
  •  



Click Here to Expand Forum to Full Width