Path: utzoo!attcan!uunet!mcvax!enea!dkuug!daimi!erja From: erja@daimi.dk (Erik Jacobsen) Newsgroups: comp.lang.pascal Subject: Re: Optimized pascal? Message-ID: <1726@daimi.dk> Date: 3 Nov 88 11:30:13 GMT References: <111.2364151B@medsoft.uucp> Reply-To: erja@daimi.dk (Erik Jacobsen) Organization: DAIMI: Computer Science Department, Aarhus University, Denmark Lines: 41 In article <111.2364151B@medsoft.uucp> Joaquim Homrighausen writes: >This must be it - the new optimizing Turbo Pascal compiler.. >I've just spend about an hour running a short routine through >the debugger and saw something quite interesting: > >mov [bp-3], al >mov al, [bp-3] > >..pretty darn optimized.. I know I'm not the best programmer at >times, but this is ridiculous for a compiler to generate.. sure, >if they would support something like C's VOLATILE keyword, but >this.. Not always! If there is a jump to the second mov, e.g. mov [bp-3],al label: mov al,[bp-3] ... jmp label there isn't much the compiler can do to avoid the mov. > regards, > joaquim > > >-- >Joaquim Homrighausen - via FidoNet node 1:135/3 >Medical Software Exchange BBS (305) 325-8709 >UUCP: ...uunet!gould!umbio!medsoft!20!Joaquim.Homrighausen Regards, Erik --------------------------------------------------------------------- Erik Jacobsen erja@daimi.dk (or erja@daimi.uucp) Computer Science Department Phone: +45 6 12 71 88 Aarhus University DK-8000 Aarhus, Denmark ---------------------------------------------------------------------