<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>
Date   : Fri, 01 Jul 2005 09:32:07 +0100
From   : Richard Gellman <splodge@...>
Subject: Re: Small-C v0.73

ooo... now you have my interest :)

Whats the memory size of compiled programs, the C library, etc, and can 
it be used to  make paged ROMs?

-- Richard

Jonathan Graham Harston wrote:

>Ooo, I just need to share this with somebody!
> 
>I've been working on updating A.J.Tarvis's Small-C to be more
>ISO/ANSI compliant and to provide a full BBC library. After fixing
>a string buffer that was *wayyy* to small, I've been carefully
>rewriting huge chunks of library code.  I've been fair thrashing
>my sooper dooper 630M hard drive! Today I successfully compiled
>and ran the following:
> 
>#include <stdio.h>
>#include <bbcos.h>
> 
>int main() {
>int c
> 
>printf("Hello there.\n");
>do {
>  c=os_rdch();
>  printf("char=%x  esc=%x\n",c,os_escape());
>  os_byte(126,0);
>  } while (c != 0x20);
> 
>return 0;
>}
> 
>It works!!!! It gives the following output:
> 
>Hello there.
>char=61  esc=0
>char=62  esc=0
>char=63  esc=0
>char=11b  esc=ffff
>char   esc=0
> 
>Way hey!!! It's not in a releasbale state yet, but you can have a
>butchers at http://mdfs.net/System/C/BBC/Small-C/v073
> 
>  
>
<< Previous Message Main Index Next Message >>
<< Previous Message in Thread This Month Next Message in Thread >>