Apr 85 Letters
Volume Number: 1
Issue Number: 5
Column Tag: Letters
Editor’s comments are sprinkled liberally within brackets [...] so please do not
mistake them for the writer’s comments. Thank you to those who take the time to write
and share the technology. We need all the help we can get!
Heinich’s Benchmark on Consulair
Thank you for MacTutor! I have been programming on the Macintosh since last
July and participated in the early (?) testing of the Apple 68000 MDS package.
Shortly after that experience, I purchased Mac C from Consulair. Mac C, with it’s
toolkit is worth every cent! However, you’ll need two drives and the Inside Macintosh
document to do any serious programming. Robert Heinich [Vol. 1, No. 3 Benchmark for
C] should immediately send a check to Consulair. The benchmark (attached) works
primarily because of the addressing capability of the 68000 and the word sizes chosen
for long, 32 bit, and short, 16 bit variables. I am just slightly curious about brands X
and Y.
I have a problem (bombs 2 and 10) accessing the International Utilities Package
using assembly code (e.g. IUDateString, IUTimeString, IUGetIntl). Could you publish
the calling sequences in a future issue? [Would love to, if I knew them!] I could also
use the format for the Apple 68K MDS assembler relocatable object files. [Try
MacNosy on it] What do you pay for original articles for MacTutor? [A lot! I don’t
understand your listing below.]
- John J. Novak
Mount Laurel, NJ
Consulair C Benchmark
; Consulair MAC C Compiler 1.0
; By John Novak (see above)
STRING_FORMAT 0
INCLUDE M68KLIB.D
main:
; long a_long;
; short a_short;
; short b_short;
; }S_000;
; }storage;
CLR.L -(SP)
LINK A6, #-8
; storage.a_long = 6;
MOVE.L #6, -8(A6)
XREF printf
;printf(“\na_short = %d”, storage.S_0000.a_short);
; D1 _storage
MOVE -8(A6), D1
EXT.L D1
LEA ‘a_short = %d’, A0
MOVE.L A0, D0
JSR printf
;printf(“\nb_short = %d”, storage.S_0000.b_short);
;D1 _storage+2
MOVE -6(A6), D1
EXT.L D1
LEA ‘b_short=%d’, A0
MOVE.L A0, D0
JSR printf
;printf(“\n”);
LEA ‘ ‘, A0
MOVE.L A0, D0
JSR printf
;}
RETX
XREF main
; 0 errors
C Reviews Needed
Thanks for the prompt delivery of my first subscription issue. I really like your
“no fluff” approach; it’s about time! Some suggestiosn: