Re: [cc65] "thought experiment", would it be possible to write a c64-kernal replacement with cc65? [scanned]

From: Ullrich von Bassewitz <uz1musoftware.de>
Date: 2006-02-21 11:34:59
Hi!

On Tue, Feb 21, 2006 at 10:50:38AM +0100, Markus Stehr wrote:
> Its just a thought experiment that i had recently, would it be possible
> to write a kernal replacement with just cc65, without inline asm and
> without any libary?

You cannot write any C non trivial program without a library, because many
things (like copying, multiplication, shifts, ...) are implemented as library
subroutines.

> Or is the C overhead too big for an 8-bit kernal?

Depending on your knowledge and the program, the result will be several times
the size of a comparable assembler program.

> I wouldnt aim compatibility with this, but some sort of modern OS on an
> 8-bitter.

Existing "modern" OSes for 6502 machines are written in assembler (Lunix for
example) and have memory problems despite this. 

Regards


        Uz


-- 
Ullrich von Bassewitz                                  uz@musoftware.de
----------------------------------------------------------------------
To unsubscribe from the list send mail to majordomo@musoftware.de with
the string "unsubscribe cc65" in the body(!) of the mail.
Received on Tue Feb 21 11:35:18 2006

This archive was generated by hypermail 2.1.8 : 2006-02-21 11:35:20 CET