[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] is tiny15 not c-programmable
From: |
David Brown |
Subject: |
Re: [avr-gcc-list] is tiny15 not c-programmable |
Date: |
Mon, 26 May 2003 11:09:14 +0200 |
>> But I could program attiny15l in C using iccavrtiny.
>> Can someone please exlpain.
> Probably ICC can. ;-)
> Nobody considered the effort worth a while to port gcc to an
> architecture that doesn't even have RAM. It might even be impossible
> to do it.
> Other compiler vendors have other implementation strategies. So if
> you feel like programming such a tiny controller in C, you just cannot
> use gcc.
Although the tiny does not have any ram as such, the registers are
addressable as ram entries (this applies to all the AVRs - it could be used
for optomisations of code in which the address of local variables are taken,
but it might lead to madness for the avr-gcc developers). It would be
perfectly possible to dedicate a group of registers to be the "stack", and
use normal gcc to generate the code - that is pretty much what ImageCraft's
tiny avr-icc does.