Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Assembly Language v C and Embedded Development: !gcc for PIC16F84



Josh Glover wrote :
> I'd like to restate my challenge as follows:
> For any architecture (MCU or otherwise) for which a decent quality
> compiler (such as gcc) is available, show that you can regularly beat
> the compiler with hand-rolled assembly.
>   

How about

mov bx, ax
shl bx, 3
sub bx, ax

to get 7 times ax?

Cheers,
Lewske Wada
Web: http://run.sh/
Email: ryu@example.com
Facebook: Lewske Wada
ICQ: 348990359



Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links