[fpc-pascal] Re: sysutils not found, haunting me

2005-06-10 Thread L505
I solved the problem for now by doing a "Build All" in lazarus, rebuilding all the system/sysutil libraries. Just had to set up all the "search paths" to point to all the include file directories, which is annoying at first since there are quite a few include files in different areas, but no so bad

Re: [fpc-pascal] Optimize code for speed

2005-06-10 Thread Gerhard Scholz
- Original Message - From: "L505" <[EMAIL PROTECTED]> To: "FPC-Pascal users discussions" Sent: Friday, June 10, 2005 10:18 AM Subject: [fpc-pascal] Optimize code for speed ... > 1. begin >M yString=Do.Something >StrList3.add(MyString); > end > > 2. beg

[fpc-pascal] sysutils not found, haunting me

2005-06-10 Thread L505
"Sysutils not found" is haunting me. Some of my programs compile fine, some don't.. randomly. So basically sometimes sysutils works, sometimes doesn't (I have also being playing around with compiler settings, and once in a while deleting a ppu file or renaming it to ppu.old can do the trick) Here

Re: [fpc-pascal] Optimize code for speed

2005-06-10 Thread Moz
L505 said: > What is more optimized code? The answer is "whatever your profiler says". Modern CPUs do so much faffing with what the compiler gives them that the only way to really know is to try it. Or if you're targetting specific (normally embedded) hardware, look at the assembly language and wo

[fpc-pascal] Optimize code for speed

2005-06-10 Thread L505
What is more optimized code? The problem is.. number 1 is easier to comment the source code. Number 2 doesn't waste an extra variable (would it be a pointer? or a copy of the var? if a pointer, any performance loss..or a very small one?) 1. begin MyString:= Do.Something(somestring);