Mailing List Archive


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

Re: [tlug] Alternatives to sed + awk



On 9 March 2011 13:28, Lewske Wada <ryu@example.com> wrote:

> Josh Glover wrote :
>> I think this is a fallacy. I challenge you to profile your code and
>> show that you can regularly beat gcc with the optimiser turned up.
>
> mov ah, 02h
> mov dl, 'a'
> int 21h
>
> Good old code...

Sure, but are all of your programs this short? Unless I'm mistaken,
you're loading data into two registers and then invoking an interrupt
(to call an MS-DOS service?).

I imagine the code that gcc emits to perform a syscall is quite efficient. :)

-- 
Cheers,
Josh


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links