[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Ciderpress for OS/X?



In article 
<1f0f92e3-f832-4b32-9c51-6739cf4dfb1f@q40g2000prh.googlegroups.com>,
 datajerk <datajerk@gmail.com> wrote:

[...]
> > Did anyone compare the code generated by Aztec with that from cc65? 
> > I'm more concerned about  the size than the speed.
> 
> I tried, but I could not get cc65 to compile my code.  It errors with 
> too many local variables.  So I gave up.  But I would like to compare 
> the speed of my pi.c program.  cc65 vs Aztec. mano-a-mano.

<http://sense.net/~egan/apple2e_aztec_c/pi.c>

$ cl65 -O2 --static-locals -t apple2enh pi.c

I get an executable of 12377 bytes.

<code>
$ diff pi.c aztexpi.c 
18d17
< #include <stdlib.h>
21d19
< #include <conio.h>
271,272c269,270
<     clrscr();
<     __asm__ ("jsr %w", 0xc300);
---
>     scr_clear();
>     crt80();
276c274
<         c = cgetc();
---
>         c = getch();
288c286
<     clrscr();
---
>     scr_clear();
295,296c293,294
<             cgetc();
<             exit(1);
---
>             getch();
>             _exit(1);
315,316c313,314
<     cgetc();
<     exit(0);
---
>     getch();
>     _exit(0);
</code>

-- 
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>