POV-Ray : Newsgroups : povray.advanced-users : Array irritation. : Re: Array irritation. Server Time
30 Jul 2024 04:17:32 EDT (-0400)
  Re: Array irritation.  
From: Warp
Date: 19 Oct 2000 03:59:13
Message: <39eea9d1@news.povray.org>
Thorsten Froehlich <tho### [at] trfde> wrote:
: Maybe it is optimising, but in a different way than you expect. On the one
: hand "i" might be needed somewhere else and inc i could only work on
: register variables (sorry, I don't know x86 assembler too well).

  The 'inc' instruction works also directly with memory locations
(ie. variables) but is slower than an 'inc' on a register. But of course
loading the variable first on a register, incrementing the register and
then storing the register on the variable is not faster (it's actually slower,
I think).
  And besides, if it's not optimizing (as the original poster said), it
should generate the simplest code, not the fastest.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.