Because of the variations, the best approach is to:
1. Consult your owner's manual: This is the most definitive source.
2. Look for a rectangular box with numerous wires connected: The ECM is usually a fairly sizable black box.
3. Check online forums: Search for "1989 GMC 3500 454 ECM location" on forums dedicated to classic GM trucks. Pictures posted by other owners can be incredibly helpful.
Keep in mind that working on the ECM requires caution. Avoid touching its components directly and be mindful of disconnecting and reconnecting wires properly.