Article View: comp.lang.pascal.delphi.misc
Article #524Re: Performance - DOS mode contra GUI .
From: Marco van de Voort
Date: Fri, 18 Aug 2000 00:00
Date: Fri, 18 Aug 2000 00:00
14 lines
1596 bytes
1596 bytes
In article <399C88FC.410AFB28@pergolesi.demon.co.uk>, Martin Harvey wrote: >"Klaus J. Koch" wrote: >> >> The other day I spent my time to convert 3 lines of pascal code into >> more than 50 lines of highly optimized assembler code avoiding slow >> commands as loops, jumps, calls, and pushs, and it ended up in >> taking 5 per cent _more_ cpu time than the compiler generated code. >3 lines of pascal should be a lot less assembler than that ... loops and >jumps are not normally expensive provided you write them in such a way >that the branch prediction algorithms in the processor get them right. Yup. It only proves that he is a lousy assembler programmer, not that Pascal is faster than asm, or that asm is not worth the trouble :-)
Technical Details
Message-ID:
<slrn8pqnki.2ui0.marcov@toad.stack.nl>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<u8mm5.822$0L1.13011@news010.worldonline.dk> <399b304d$0$1695@heracles> <7k26wEf91hB@klaus.mr.he.schule.de> <399C88FC.410AFB28@pergolesi.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1091e5,8b5ff9f09340286e X-Google-Attributes: gid1091e5,public X-Google-Thread: fd817,8b5ff9f09340286e X-Google-Attributes: gidfd817,public X-Google-Thread: 10baee,8b5ff9f09340286e X-Google-Attributes: gid10baee,public From: marcov@toad.stack.nl (Marco van de Voort) Subject: Re: Performance - DOS mode contra GUI . Date: 2000/08/18 Message-ID: <slrn8pqnki.2ui0.marcov@toad.stack.nl> X-Deja-AN: 659775713 References: <u8mm5.822$0L1.13011@news010.worldonline.dk> <399b304d$0$1695@heracles> <7k26wEf91hB@klaus.mr.he.schule.de> <399C88FC.410AFB28@pergolesi.demon.co.uk> Organization: Eindhoven University of Technology, The Netherlands User-Agent: slrn/0.9.6.2 (FreeBSD) Newsgroups: comp.lang.pascal.delphi.misc,alt.comp.lang.borland-delphi,borland.public.delphi.winapi