CompuServe Archive

This is an archive of CompuServe forum messages from 1985 to 1995, as saved in transcripts by John Foust.

Search Results (6 messages)

#7243 Optimizer Useless!? Message #7244
[continued] 0000002E: 3D6E FFD8 FFD6 MOVE.W $FFD8(A6),$FFD6(A6) 00000034: 486E FFD4 PEA $FFD4(A6) 00000038: 4EBA 0000 JSR takebase(CBase&) 0000003C: 3F03 MOVE.W D3,-(A7) 0000003E: 4EBA 0000 JSR localSysBeep(short) 00000042: 4CDF 0018 MOVEM.L (A7)+,D3/D4 00000046: 4E5E UNLK A6 00000048: 4E75 RTS 0000004A Here is the disassembly of main() from the version that calls…
#7227 #Optimizer Useless!? Message #7243
Here is a short program which illustrates the problem with optimization not occurring in functions containing toolbox calls: class CBase { public: short a, b, c; inline CBase () { a = 1; b = 2; c = 3; } inline void foobar () { a = b + c…
————————————————————————– I originally sent this message almost three weeks ago. I called the tech support line a week ago. I still haven't gotten an answer to what ought to be a straightforward question. ————————————————————————– Sir– I'm running into a problem with the C++ compiler. It seems to fail to optimize…
Tom– No, they didn't. The reply I got just said, "I'll suggest to the documentation department that this be documented." The Pascal-object vtable format must be documented with some tool or other. Doesn't MPW Pascal use the same structure? Do they document it? –Ken
#7072 #swapping handles Message #7159
From: Ken Broomfield Symantec Dev Tools Forum · TCL & OOP July 19, 1993 2:29 PM
Jim– I think the other replies to you message may be confused at least in talking about virtual method tables and classes. Jud is probably right that you'll have to copy the object contents. At first glance, what you're proposing ought to work: simply swapping the master pointers which are…
Mac Prog Text Editors Message #131741
Hmmmm… I should let you know I'm not an MPW expert by any means. Maybe an MPW-guru around here'll be more help than I. However, the problems you're describing don't sound familiar. Are you using an old version of MPW? Which compiler are you using? I know that when I've…