Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Alternatives to sed + awk
- Date: Fri, 11 Mar 2011 06:36:50 +0100
- From: Attila Kinali <attila@example.com>
- Subject: Re: [tlug] Alternatives to sed + awk
- References: <AANLkTim_-D9CFYC8TNp33ni85zB+QBA7jV=BpLN=4SbZ@example.com> <AANLkTimhSGxdPk45AMZHqX8eo2PS75K-qkuV+xMS7bdH@example.com> <AANLkTimSRkAiworM=O5VRfTVw-jBA4z=iD89OXY9sWxB@example.com> <4D765593.4090409@example.com> <4D76ECFF.30903@example.com> <AANLkTim=he_XLrHsFU2RMEUtq1f30AROO1mYQ7nLJvL3@example.com> <DED1953A-4193-4A6B-9ED4-BF0F676BA509@example.com> <AANLkTikTORsQbrnd0wAu_QwntBmjijBT83s24=5t_h2Z@example.com> <2E17A6AD-8F2B-4AEA-9555-4FB82ADA3B29@example.com> <AANLkTinr1G_7eoacC6CFQqg=eRBuBcBSWXRPy5zcydhz@example.com> <4D774AA8.5070200@example.com> <AANLkTikvJp8vzjV8QNVSU9nXTmLSJpQTELv7TgcOnV+C@example.com> <4D77657F.2060909@example.com> <AANLkTi=AvD9FneSDjoYk7=++oeW31LwPRjihYRg8spjE@example.com> <20110310083815.c8707744.attila@example.com> <AANLkTi=K1iRzZsmnMJnYB11RZGBt8eR6Xapu2LZKM4y3@example.com>
On Thu, 10 Mar 2011 09:29:32 +0100 Josh Glover <jmglov@example.com> wrote: > On 10 March 2011 08:38, Attila Kinali <attila@example.com> wrote: > > Another thing is if you are doing high performance stuff where you > > use each and every feature of your CPU. Have a look at libraries > > like lavcodec which contain an increadible amount of hand written > > assembler code. > > Sure, but that is certainly one of the special cases to which I > alluded earlier in this thread. I assume that lavcodec was profiled > and hand-optimised, right? Or did the developers (aren't you one?) > just know which sections needed to be fast / small enough for > assembler? Profiling in the common sense was not done. Cannot be done in this kind of code. The usual tools that are available for performance measurement disturb the characteristics of the code to measure so much, that you basically get random numbers. What is done instead, a guess on which section might be interesting for optimization (they are nearly all of the same category) is done. While writing and optimizing the asm code, a special block before and after is inserted that counts the cycles used. And in the end an overall benchmark is done, whether the whole thing did actually give any performance boost. > Also, how portable is lavcodec to amd64? PowerPC? Sparc? For every asm function, there is a prototype written in C. x86* is very well supported and has the most asm code. PowerPC has not as much, but enough to run fast. Sparc has very little asm optimization. Interestingly, the best optimized architecture after x86* is ARM. > > But especially if you go to smaller machines, there > > is no alternative to start directly in assembler. The mentioned PIC16F84 > > is one of those uCs i wouldnt bother using a compiler with. > > That is something I learned from this thread. > > I still stick by my modified statement that you can't regularly beat a > compiler on any architecture the compiler supports well. :) The best compiler i've seen out there is gcc. And it doesnt support any architecture well. Not even x86_32. Attila Kinali -- It is the unknown we fear when we look upon death and darkness, nothing more. -- Albus P. W. B. Dumbledore
- Follow-Ups:
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- References:
- [tlug] Alternatives to sed + awk
- From: Nguyen Vu Hung
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Nguyen Vu Hung
- Re: [tlug] Alternatives to sed + awk
- From: Raymond Wan
- Re: [tlug] Alternatives to sed + awk
- From: Lewske Wada
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Lewske Wada
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Lewske Wada
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Lewske Wada
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Lewske Wada
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
- Re: [tlug] Alternatives to sed + awk
- From: Attila Kinali
- Re: [tlug] Alternatives to sed + awk
- From: Josh Glover
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Browser share in Japan?
- Next by Date: Re: [tlug] Assembly Language v C and Embedded Development: !gcc for PIC16F84
- Previous by thread: Re: [tlug] Alternatives to sed + awk
- Next by thread: Re: [tlug] Alternatives to sed + awk
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links