Le 19.12.2013 11:12, Dave McGuire a écrit :
>    Well, GCC supports AVR because people wrote AVR support into GCC. ;)
> AVR is a bit more "compiler friendly" than, say, the Z80.

Well, I'm not familiar with Z80, but by "compiler friendly" I guess this 
basically means RISC right ? Each operation can be done on each 
register, which can be allocated optimally with graph colouring/left 
edge, etc, etc... ?

But then this makes the 68k and x86, but supported by gcc, are not 
compiler friendly either. I'm not familiar at those either but a quick 
look at their instruction set is enough to see they're not quite RISC 
right ?

Someone familiar with an instruction set can easily make up heuristics 
that works to allocate registers in most cases, anyways. Not as elegant, 
sure. I'll have to look at how SDCC handles this once I'll have the time.

And by the 8-bit / 16-bit debate, I meant that if each time you do an 
arithmetic operation on 8-bit data types it will expend it on 16-bit, it 
will have absolutely horrible performance on a 8-bit target (each 
operation is basically doubled even if you don't want it). That's quite 
a problem.


>    AVR is AVR, architecturally speaking.

Yes but I don't know Atmel could have produced both 8-bit and 16-bit 
microcontroller right ? I only used 8-bit ones but I'm not familiar with 
the full range of what they offer. Although I've seen Atmel produced 
ARMs, so probably they offer AVRs for tiny systems and ARM for big ones.


>    Well, GCC "supports MSP430" meaning TI distributes a hacked-up GCC
> that targets it, yes.  That support has not yet (the last time I
> checked) been merged into the official sources, which means I'll have
> one different, weirdly-configured GCC installation alongside my
> half-dozen nice consistent standard ones.  No thanks.
>

Sorry I wasn't aware of that. It's TI's fault for not merging it with 
the main project then.

Regards,
Jonathan


------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349831&iu=/4140/ostg.clktrk
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to