programming language?
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.
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
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
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...
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.
Supreme 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..
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..
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..
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..
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?
Trending Topics
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
Ask him if it is ready. It might save you a lot of work.
J
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.
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?
One last question, how hard would it be to use a personal computer to replace an ECM/PCM?
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.
Thread
Thread Starter
Forum
Replies
Last Post





