purepd WAS: Re: [PD] comport and bascom avr / ascii2any

Thomas Grill gr at grrrr.org
Mon Nov 21 22:53:44 CET 2005



Martin Peach schrieb:

> Marc Lavallée wrote:
>
>> Le 21 Novembre 2005 15:08, Hans-Christoph Steiner a écrit :
>>  
>>
>>> Assembly is even faster than C, so why aren't people writing objects in
>>>  assembly?
>>>   
>>
>>
>> Because assembly is unreadable, like some PD patches.
>>  
>>
>
> ...and not portable, you need to write different code for each 
> processor, whereas a C compiler can take c code and make the 
> appropriate assembly from it. So c objects end up written in assembly 
> anyway. The only advantage in writing directly in assembly is if you 
> think you can write better code than the compiler, which was quite 
> possible in the past, but nowadays not so easy.

Well, ever heard of atomic instructions and lockfree code?
And how about SIMD?

Would you show me how to code that in C?

thanks,
Thomas






More information about the Pd-list mailing list