Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

RE: [AVR-Chat] Re: AVR Compiler: which is the best

2004-03-17 by David VanHorn

At 06:55 PM 3/16/2004 -0800, Dave Hylands wrote:

>Yeah, but can you take your modular ASM code and use it on an ARM
>processor, or an Intel, etc?

Sure. You just write the new routine in the native language to follow the same algorithm. I just did this for a CRC routine, with source in 8051 on the AVR. 


>This is one of the reasons why I like C, because I don't have to care
>which processor I'm running on. This is certainly not to say that all C
>code is portable, because it isn't, but I can write large portions of my
>code which I move from one platform to another with little or no
>changes.

It's not that hard. I think in this case, it took me 30 mins or so.
And the routine is tight, and well built for the AVR.

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.