DIY PROM Do It Yourself PROM chip burning help. No PROM begging. No PROMs for sale. No commercial exchange. Not a referral service.

programming language?

Thread Tools
 
Search this Thread
 
Old Aug 30, 2005 | 10:59 AM
  #1  
11sORbust's Avatar
Thread Starter
Supreme Member
 
Joined: Nov 2003
Posts: 1,399
Likes: 0
From: STL area
programming language?

Does anybody know what programming language GM used for the p4 ecms? From what I understand, people don't write software in machine code. It's usually done with a higher level programming and converted to machine code for the MCU.
Reply
Old Aug 30, 2005 | 11:27 AM
  #2  
RBob's Avatar
Moderator
iTrader: (1)
 
Joined: Mar 2002
Posts: 18,432
Likes: 233
From: Chasing Electrons
Car: check
Engine: check
Transmission: check
Assembly.

RBob.
Reply
Old Aug 30, 2005 | 09:21 PM
  #3  
junkcltr's Avatar
Supreme Member
iTrader: (1)
 
Joined: Jan 2002
Posts: 4,432
Likes: 1
From: garage
Engine: 3xx ci tubo
Transmission: 4L60E & 4L80E
I have to agree with RBob. All of the assembly I have seen from compilers looks very different than what an ECM assembly looks like.
Remember, you are reading 80's and early 90's code that is based on the original 80's code. Back then an Intel x286 was "fast" there wasn't a lot of "good" compilers. Kids played on VIC20s. To have an engine running off a computer was a real accomplishment. Windows wasn't even around. Bill was still sucking money from IBM to create his fortune.

Yes, looks to be done in assembly.

J
Reply
Old Aug 31, 2005 | 09:30 AM
  #4  
11sORbust's Avatar
Thread Starter
Supreme Member
 
Joined: Nov 2003
Posts: 1,399
Likes: 0
From: STL area
makes sense.

on a sidenote, do you guys think it's possible to program the (p4)ecm in a higher language and compile that to work? It seems like it would take forever to do with assembly, by myself. I'm still learning how to understand assembly. So this is a long term goal, to run my own code from scratch. Trying to think of ways to cut time. From what I understand, one could write a single line of code in a higher language and that would be like multiple lines in assembly.




One last question, how hard would it be to use a personal computer to replace an ECM/PCM? There must be a way to at least use GM code and emulate the hardware. Might have to use dos...what about storing the code within the bios? Might have to make a I/O board or something though.
This seems like the "ultimate goal" considering p4 ecms are not going to be made forever. It's something I have thought about recently...

Last edited by 11sORbust; Aug 31, 2005 at 09:33 AM.
Reply
Old Aug 31, 2005 | 09:53 AM
  #5  
MrDude_1's Avatar
Supreme Member
20 Year Member
 
Joined: Jun 2001
Posts: 9,550
Likes: 4
From: Charleston, SC
Car: 91 Camaro Vert
Engine: 02 LS1, HX40
Transmission: 2002 LS1 M6
you can program any MODERN PCM in C....

and no, you cant emulate a ECM with a PC and have it actually run a engine... atleast not without making custom hardware... you can somewhat emulate it in the PC though... and emulate the engine..
Reply
Old Aug 31, 2005 | 10:15 AM
  #6  
11sORbust's Avatar
Thread Starter
Supreme Member
 
Joined: Nov 2003
Posts: 1,399
Likes: 0
From: STL area
Originally posted by MrDude_1
you can program any MODERN PCM in C....

and no, you cant emulate a ECM with a PC and have it actually run a engine... atleast not without making custom hardware... you can somewhat emulate it in the PC though... and emulate the engine..
That is why I mentioned an I/O converter, or something....
Reply
Old Aug 31, 2005 | 11:47 AM
  #7  
1981TTA's Avatar
Member
 
Joined: May 2004
Posts: 289
Likes: 0
From: SE Michigan
Car: 81 Turbo Trans Am
Engine: 301 T
Transmission: 200-4R
on a sidenote, do you guys think it's possible to program the (p4)ecm in a higher language and compile that to work?
It's definitely possible. The two things you would be fighting (and have to keep an eye on) are total code space (ROM) and execution time. I know newer compilers can do a pretty good job of optimizing so that you don't always generate 100 lines of assembly for each line of "C". I wonder how many "mature" HC11 compatible compilers are that well optimized.....?
Reply
Old Aug 31, 2005 | 01:11 PM
  #8  
junkcltr's Avatar
Supreme Member
iTrader: (1)
 
Joined: Jan 2002
Posts: 4,432
Likes: 1
From: garage
Engine: 3xx ci tubo
Transmission: 4L60E & 4L80E
Do a search for a post where Funstick was going to re-write the assembly in C in about a month or two. He said that in February but has not provided any updates since then.
Ask him if it is ready. It might save you a lot of work.

J
Reply
Old Aug 31, 2005 | 06:54 PM
  #9  
Mangus's Avatar
TGO Supporter
 
Joined: Jan 2000
Posts: 1,861
Likes: 0
From: In your ear. No, the other one.
Car: '89 Trans Am WS6
Engine: 350 TPI
Transmission: T5WC
Axle/Gears: 3.08 posi
Interesting tidbit: I've heard something about GM now using Modula for their current vehicles.
Reply
Old Aug 31, 2005 | 10:23 PM
  #10  
Grumpy's Avatar
Supreme Member
 
Joined: Jun 2000
Posts: 7,554
Likes: 1
From: In reality
Car: An Ol Buick
Engine: Vsick
Transmission: Janis Tranny Yank Converter
Originally posted by 11sORbust
One last question, how hard would it be to use a personal computer to replace an ECM/PCM?
The subject was beat to death at DIY-EFI years ago.

Reprogramming in a different language. Why?, what's wrong with what's there?. Why not learn enough to just comment out, and streamline what already works.
Reply
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
djmarch
Tech / General Engine
11
May 8, 2016 11:32 AM
ULTM8Z
DIY PROM
12
Oct 2, 2015 01:25 PM
bryanwood74
LTX and LSX
9
Sep 24, 2015 09:50 PM
f-bodyz28
Tech / General Engine
3
Sep 2, 2015 05:03 PM
bdads
DIY PROM
3
Aug 24, 2015 06:01 PM




All times are GMT -5. The time now is 06:08 PM.