Subject: | |
From: | |
Reply To: | |
Date: | Wed, 27 Apr 2005 11:47:55 -0700 |
Content-Type: | text/plain |
Parts/Attachments: |
|
|
Re:
> On 4/27/05, Ken Hirsch <[log in to unmask]> wrote:
> >The old HP 3000 series uses a different addressing scheme for byte
...
> That may be the case but it doesn't manifest itself (easily) when you use
> the C compiler on that system. I'd be interested to see a program that
No...you're using HP's C ... Ken's referring to either of the
two (?) C compilers for the Classic 3000 (or for CM use on the current 3000).
HP C (including c89) and gcc are for the current PA-RISC based HP3000.
Here's what happens when you run something like your test
with the CCSC C compiler (for the Classic HP 3000, or for CM on
MPE/iX)... (minor changes, including printing the "good" char ptr
first, then the "bad" char ptr)
hello
**** PROGRAM ERROR #24 :BOUNDS VIOLATION
ABORT: T.PUB.SIELER
PC=a.00ac54e8 dbg_stackdump_cmds+$28
NM* 0) SP=41642f50 RP=a.005482a8 trap_handler.handle_setdump+$f4
NM 1) SP=41642ed0 RP=a.00549784 trap_handler+$3ec
NM 2) SP=41642e50 RP=a.0053b0a4 cm_traphandler+$24
NM 3) SP=416427d0 RP=a.0053b06c ?cm_traphandler+$8
export stub: a.00ecef24 arg_regs+$28
NM 4) SP=41642790 RP=a.00e91b24 nm_switch_code+$94c
NM 5) SP=41642660 RP=a.00e7cc5c Compatability_Mode
(switch marker frame)
CM SYS % 230.404 SWITCH'TO'NM'+%4 (Mitroc CCG) SUSER1
CM * 0) SYS % 230.404 SWITCH'TO'NM'+%4 (Mitroc CCG) SUSER1
CM 1) SYS % 200.25453 ABORT+%1353 (Mitroc CCG) KNSEG3
CM 2) SYS % 165.7 BOUNDSVIOLATION+%7 (Mitroc CCG) CMININ
CM 3) PROG % 0.566 (mItroC CCG)
CM 4) PROG % 0.151 (mItroc CCG)
CM 5) PROG % 0.10245 (mItroc CCG)
CM 6) PROG % 0.173 (mITroc CCE)
--
Stan Sieler
[log in to unmask]
www.allegro.com/sieler/wanted/index.html
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|
|
|