Lazarus

Programming => General => Topic started by: johngalt47 on October 13, 2015, 09:47:43 pm

Title: Free Pascal application in Windows 7 vs 10
Post by: johngalt47 on October 13, 2015, 09:47:43 pm
Using FPC, I compiled the exact same code on two different computers:

1) Laptop (about 4 years old) using an i7 process running at 2.3 ghz under Windows 7

2) Desktop ( about 1 year old) using an i7-4790K running at 4.2 ghz under Windows 10 Insider Preview edition.

Both have SSD drives.

The laptop beat the desktop by more than double!

Any ideas why?
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: skalogryz on October 13, 2015, 10:13:09 pm
what does the application?

Note, my 7 years old XP box also beats Windows 10 in boot time.

So what you're actually doing in the application, matters the most.
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: marcov on October 13, 2015, 10:15:10 pm
The laptop has power scheme "always  on" while the desktop "save"or so ?
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: BobS on October 14, 2015, 07:44:32 am
I think Marcov might be right.  I don't have 10 just 8.1 but this should hopefully get you there anyway.

Go to the control panel\Hardware and Sound\Power Options
click on 'show additional plans' if necessary to see the check box for 'High performance' and check it.
Now go compile is it faster?
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: rvk on October 14, 2015, 10:16:56 am
The laptop has power scheme "always  on" while the desktop "save"or so ?
I would have thought a laptop would have default "power save" on. And a desktop default always "Highest performance". I've never seen it the other way around. But either way, it's good to check the option. (It could have been changed)

My guess is more towards the available memory and/or virusscanner.
(what memory do both machines have and have you tried disabling the virusscanner temporarily)
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: Thaddy on October 14, 2015, 10:49:12 am
The insider preview also has extensive logging and debug code. That might also impact performance.
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: Handoko on October 14, 2015, 11:03:20 am
Many things can affect the performance. Virus, antivirus and other software, harddisk fragmentation, etc. But if the difference is more than double, that sounds weird.

You should try to download cpu performance benchmark tool to see what would it say.
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: shobits1 on October 14, 2015, 08:18:37 pm
Quote
The laptop beat the desktop by more than double!

whats double (app start up, speed to internet, video encoding ............) ???  :-\

unless you define what doubled no one will have any idea. also if you can provide the code things will be much clearer.

P.S: some times double is not good, like latency for example  :D
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: Brizeux on November 12, 2015, 11:48:08 am
Excuses me I am a Newby. If I can find help ?
I try to launch Fpc applications from Windows 7 to Windows 10.
1) fp-ide (brand new 2.6.4 under Win10 / this morning) doesn't create object files.
2) all my *.exe issued from Win7 under Win10 hang.
3) all my *.exe run under Win7
Have you a way to help me under windows 10 ?
Friendly. Yves.
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: Handoko on November 12, 2015, 04:34:00 pm
Hello Brizeux, welcome to this forum.

We really want to help you, but the information you provided really isn't enough.

You didn't mention what kind of that application was. Was it a database application? Graphics or games? Can we see your code? What about the compiler settings? Did it use any OS dependent functions? When did it hang? On loading or on certain process?
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: Brizeux on November 13, 2015, 07:54:14 am
Hello Handoko.
My programs are pure Pascal mathematical graphical  interactive programs. For instance "fulleren.pas" run perfectly under Win7, Ubuntu 14.04 LTS and I use Raspberry Pi 2B for first programs with Fpc+ptcgraph under Raspbian. All my programs, running under Windows 7 hang under Windows 10 ! Why ? Why pure Fp-IDE (2.6.4), running on 5 computers, without changing anything to set-up parameters, works fine under Win 7 and hang under Win 10 without any change (object files and executable files can't be opened. THe only change has been the passage from Windows 7 to Windows 10. Even the old *.exe files from Win 7 don't execute on Win 10 (for 5 computers, and when I downgrade -successfully on 4 computers- to Win 7, all the *.exe files then works very well. I think I have a bad insight of Windows 10 system (like permissions to execute files under Linux ?). During W.E.  ::) I shall try to use pure number crunching pascal program to dissociate events coming from graphics part from pure OS subtilities. In my opinion, I have forgotten something to set up properly windows 10 for fpc ? Friendly in PASCAL. Yves. ::)
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: mdalacu on November 13, 2015, 08:40:21 am
My app, dmMediaConverter, is running just fine under Windows 10 ... and i hate windows  ;)
http://dmsimpleapps.blogspot.ro/2014/04/dmmediaconverter.html
I am the latest stable Lazarus 1.4.4
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: marcov on November 13, 2015, 08:50:25 am
Depending on how you brought the EXEs to win10, sometimes the antimalware solution can be annoying.
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: Brizeux on November 13, 2015, 08:57:07 am
Dear Handoko.
I have gone a little further :
On computer Octopus (Dell Precision 690 Bi Xeon Quad under Windows 10 pro)
I have punched the Pascal program Ada of one of my Raspberry : ada.pas
Compilation: O.K. Execution: Nothing. The processus is active but does nothing !
The same ada.exe from Win 10 is then transferred under the computer Hexaedre
 (ASUS Core I7 G75V under Win 7 pro)
Everything run fine under Hexaedre !
When I use units (graph ...) every thing hangs no object file, no exe file under fp-IDE
Friendly. Yves.

****************************************************************************************
program   Ada;
begin   { Ada }
 writeln( 'C1 : program Test for the node Raspberry Pi 2 B : Babbage.');
 writeln( ':= Programme  d''Ada sur Charles Babbage en PASCAL' ) ;
 writeln( '*** Bonjour Charles BABBAGE, ici Ada, LoveLace ! ' ) ;
 readln
end.   (* Ada *)
****************************************************************************************
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: marcov on November 13, 2015, 10:00:52 am
That definitely smells like antivirus trouble. Only other thing I can imagine is that you try to install it in "program files" instead of the proposed directory.
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: Brizeux on November 13, 2015, 10:07:45 am
Merci Marcov.
I use the same free antivirus "avast" on all computers on all Windows OS without parameter tuning. I shall look at this more precisely under Windows 10 . Friendly. Yves.
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: Brizeux on November 13, 2015, 10:35:26 am
Thanks to All !

I finished the post :
The problem pointed by Marcov is in the difference of behaviourism of the antivirus "Avast" between Win7 and Win10.
All my old pascal.exe works now on Win10.
I have just problems of pascal.o and pascal.exe to tune with fp-IDE under Windows 10 + Graphics : I doesn't create those files.
So my post is closed
Title: Re: Free Pascal application in Windows 7 vs 10
Post by: Brizeux on September 12, 2019, 08:21:32 am
---- End of my messages on Rpi4/Buster with free pascal environment fp-ide ...
I have buyed a new Rpi4/4Go on Kubii.fr and set up a new buster raspbian system on the new card.
This morning I have rebuilt a new fp-ide on this card by :
sudo apt-get install fp-ide
All works find in the set up but when compiling my welcome "blaise.pas" the same system error occurs !
by mending the directories under the TP7-IDe-like the program is well executing like in the precedent card.
So I think that the Free Pascal Editor for Buster/Rpi4 is not operational.
( Also units Crt, PtcGraph, PtcCrt are to be implemented because they aren't found under EDI).

TinyPortal © 2005-2018