Re: [cc65] C64 web server

Date view Thread view Subject view

From: Ullrich von Bassewitz (uz_at_musoftware.de)
Date: 2001-10-17 13:20:32


On Wed, Oct 17, 2001 at 01:36:51PM +0300, Marko Mäkelä wrote:
> Where is the content stored?  In the main memory?

Yes. uIP tries to be as portable as possible and so it doesn't use file I/O.
Maybe Adam can say more about this.

> I think that the
> previous implementation (which was pure 6502 language, as far as I know)
> used 1541 disk storage.  When I connected to that server's HTTP port with
> telnet, I could clearly see pauses in the HTML stream every 254 bytes.

If you don't have any other stuff running, writing the web server in assembly
is not really necessary. The slowest link is the serial connection. Even at
38400 bps (which is quite fast for a C64), only 4 bytes are transmitted over
the serial line each millisecond. This is not really hard, even with a 1MHz
6502.

One drawback is that the pages served are limited by main memory. But serving
larger pages or pictures over a serial link wouldn't be a good idea anyway. A
mixed scheme (reading objects from disk but caching them in memory) would
probably be a better idea.

The nice thing about uIP is that it is portable. So there is a high chance
that improvements for one platform will also work for another, without the
usual porting efforts that are needed when using assembly.

> Hmm, didn't the ancestor of cc65 run directly on Atari hardware, without
> having to be a cross-compiler? :-)

Yes, Atari people often stop half way through:-)
Look at

    http://www.kl.net/atari/

These people connected an Atari to the net, but used a terminal server to do
so. The Atari does not even run TCP/IP. How uncool :-)

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz_at_musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo_at_musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.


Date view Thread view Subject view

This archive was generated by hypermail 2.1.3 : 2001-12-14 22:05:43 CET