Author Topic: SSD not the answer  (Read 921 times)

jcfuller

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
SSD not the answer
« on: October 18, 2020, 05:19:01 AM »
It looks like adding an SSD to a 11 year old box does not mean a performance gain?
It is and old Gateway i7 860 @ 2.80 GHz 8 GB ram
SSD ->  Western Digital 1TB WD Blue 3D NAND Internal PC SSD - SATA III 6 Gb/s

The 20 second compile timing I posted (https://bcxbasiccoders.com/smf/index.php?topic=368.15) was on my every day machine: a Dell XPS8900 i7-6700 @3.40GHz 8 GB ram HD


The Gateway was 1 minute 30 seconds. Not acceptable

I really want a dedicated machine for BCX and BcxAdp coding so I bought one. A cheapy (refreshed) but good specs. amazon.com/gp/product/B07RNMXDRF/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1

I used to but a new rig every 2 years but my last one was the Dell above on January 30, 2016.

James





MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 959
    • View Profile
Re: SSD not the answer
« Reply #1 on: October 18, 2020, 09:52:36 AM »
It looks like adding an SSD to a 11 year old box does not mean a performance gain?
It is and old Gateway i7 860 @ 2.80 GHz 8 GB ram
SSD ->  Western Digital 1TB WD Blue 3D NAND Internal PC SSD - SATA III 6 Gb/s

The 20 second compile timing I posted (https://bcxbasiccoders.com/smf/index.php?topic=368.15) was on my every day machine: a Dell XPS8900 i7-6700 @3.40GHz 8 GB ram HD


The Gateway was 1 minute 30 seconds. Not acceptable

I really want a dedicated machine for BCX and BcxAdp coding so I bought one. A cheapy (refreshed) but good specs. amazon.com/gp/product/B07RNMXDRF/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1

I used to but a new rig every 2 years but my last one was the Dell above on January 30, 2016.

James

That Dell will be a pleasure to use.

My daily driver is a HP EliteDesk -- 3.1gz  i5-2400, 8GB, Patriot SSD boot drive


My Clang64 batch finishes compiling BCX (one time) in 14 seconds

07:21:34
Compiling bc  with Clang64
Completed ...
07:21:48

In contrast, My VC64 batch finishes in 24 seconds

07:27:58

Compiling bc With MSVC for 64-bit
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

Linking bc
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Completed
07:28:22

I've said this before, I routinely use LccWin32 during development and
testing before switching over to test Pelles, Mingw, VC, and Clang. 

LccWin32 compiles Bcx in 1 second

07:43:03
Compiling bc with LccWin32
07:43:04

jcfuller

  • Sr. Member
  • ****
  • Posts: 313
    • View Profile
Re: SSD not the answer
« Reply #2 on: October 23, 2020, 07:36:37 AM »
Well this was a double no go but a nice little machine just the same.
The DP to HDMI converter is not compatible with my HDMI KVM it appears. I can get everything working fine but after I switch to another computer and come back the screen is black. The only way I found to get it back is to reboot. The compile time for bulding BCX is a little faster but still over a minute.
I guess the reason it's so fast on my every day machine is it's a four (almost 5) yeard old  Dell XPS8900.  Boy time does fly. Only 700$ and change back then.
I'm not going to spend big bucks for speed improvement. Besides I'm happy with the Stock 64bit bc.exe so I don't have to recompile BCX all the time. $PP is working fine for the few additions I have added so far.
I may update my every day machine just because it's four years old :)

James


Robert

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: SSD not the answer
« Reply #3 on: July 22, 2021, 02:19:08 AM »
It looks like adding an SSD to a 11 year old box does not mean a performance gain?
It is and old Gateway i7 860 @ 2.80 GHz 8 GB ram
SSD ->  Western Digital 1TB WD Blue 3D NAND Internal PC SSD - SATA III 6 Gb/s

The 20 second compile timing I posted (https://bcxbasiccoders.com/smf/index.php?topic=368.15) was on my every day machine: a Dell XPS8900 i7-6700 @3.40GHz 8 GB ram HD


The Gateway was 1 minute 30 seconds. Not acceptable

I really want a dedicated machine for BCX and BcxAdp coding so I bought one. A cheapy (refreshed) but good specs. amazon.com/gp/product/B07RNMXDRF/ref=ppx_yo_dt_b_asin_title_o02_s00?ie=UTF8&psc=1

I used to but a new rig every 2 years but my last one was the Dell above on January 30, 2016.

James

That Dell will be a pleasure to use.

My daily driver is a HP EliteDesk -- 3.1gz  i5-2400, 8GB, Patriot SSD boot drive


My Clang64 batch finishes compiling BCX (one time) in 14 seconds

07:21:34
Compiling bc  with Clang64
Completed ...
07:21:48

In contrast, My VC64 batch finishes in 24 seconds

07:27:58

Compiling bc With MSVC for 64-bit
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.24215.1 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

Linking bc
Microsoft (R) Incremental Linker Version 14.00.24215.1
Copyright (C) Microsoft Corporation.  All rights reserved.
Completed
07:28:22

I've said this before, I routinely use LccWin32 during development and
testing before switching over to test Pelles, Mingw, VC, and Clang. 

LccWin32 compiles Bcx in 1 second

07:43:03
Compiling bc with LccWin32
07:43:04

I just downloaded the latest Embarcadero Community Edition C++ compiler. Available at

https://blogs.embarcadero.com/delphi-cbuilder-community-editions-now-available-in-version-10-4-2/

Compiling BCX as 32 bit with bcc32.exe is slightly slower than LccWin32. 1.25 seconds

Code: [Select]
Embarcadero C++ 7.50 for Win32 Copyright (c) 1993-2021 Embarcadero Technologies, Inc.
BCX772.cpp:
Turbo Incremental Link 6.95 Copyright (c) 1997-2021 Embarcadero Technologies, Inc.

Start    : 23:57:36.58
Finish   : 23:57:37.84
         ---------------
Duration : 00:00:01,26

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 959
    • View Profile
Re: SSD not the answer
« Reply #4 on: July 22, 2021, 02:03:32 PM »
Hi Robert,

Do you have any batch files to share for this version?



Robert

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: SSD not the answer
« Reply #5 on: July 22, 2021, 02:33:34 PM »
Hi Robert,

Do you have any batch files to share for this version?

Hi MrBCX:

I am, at this very moment, revising my batch files. The Embarcadero install places several modifications at the very beginning of the path variables which I found interferes with some of my other stuff. I am going to remove the Embarcadero Path entries from the environment and put them in the batch files. If I want to use the Embarcadero IDE, I will put their PATHs back in the environment.

I have zipped up my existing files for you to try. You shouldn't have to change anything. EMCXXX=Console, EMDXXX=DLL EMWXXX=GUI. Let me know if you have any problems.

Robert

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: SSD not the answer
« Reply #6 on: July 22, 2021, 02:39:14 PM »
Hi Robert,

Do you have any batch files to share for this version?

Hi MrBCX:

I am, at this very moment, revising my batch files. The Embarcadero install places several modifications at the very beginning of the path variables which I found interferes with some of my other stuff. I am going to remove the Embarcadero Path entries from the environment and put them in the batch files. If I want to use the Embarcadero IDE, I will put their PATHs back in the environment.

I have zipped up my existing files for you to try. You shouldn't have to change anything. EMCXXX=Console, EMDXXX=DLL EMWXXX=GUI. Let me know if you have any problems.

Also the resource compiler is set up in the batch files to have the .rc and related files in a folder named "res" in the source to be compiled root folder. The Embarcadero distro includes the Microsoft rc.exe resource compiler so if you want you can swap out in the batch file the brcc32.exe compiler for the rc.exe but the command lines are different so you will have to adjust if you do that.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 959
    • View Profile
Re: SSD not the answer
« Reply #7 on: July 22, 2021, 02:41:09 PM »
Thanks Robert ... It helps having a good starting point.

Compiling for C++, I was able to load bc.cpp into the IDE, build and run.

The first time failed with one error ... _kbhit undefined, so I updated the following in BCX, and
now it compiles with just some minor philosophical warnings.

  FPRINT FP_HDR, "// *********************************************************************"
  FPRINT FP_HDR, "//                        Borland C++ 5.5.1"
  FPRINT FP_HDR, "// *********************************************************************"
  FPRINT FP_HDR, "#if defined (__BCPLUSPLUS__)"
  FPRINT FP_HDR, "  #define _kbhit kbhit"
  FPRINT FP_HDR, "  #if !defined(_WIN64)"
  FPRINT FP_HDR, "    #include <dos.h>"
  FPRINT FP_HDR, "    #pragma comment(lib,", ENC$("import32.lib"), ")"
  FPRINT FP_HDR, "    #pragma comment(lib,", ENC$("cw32.lib"), ")"
  FPRINT FP_HDR, "  #endif"
  FPRINT FP_HDR, "#endif"

Robert

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: SSD not the answer
« Reply #8 on: July 22, 2021, 02:51:25 PM »
Hi Robert,

Do you have any batch files to share for this version?

Hi MrBCX:

I am, at this very moment, revising my batch files. The Embarcadero install places several modifications at the very beginning of the path variables which I found interferes with some of my other stuff. I am going to remove the Embarcadero Path entries from the environment and put them in the batch files. If I want to use the Embarcadero IDE, I will put their PATHs back in the environment.

I have zipped up my existing files for you to try. You shouldn't have to change anything. EMCXXX=Console, EMDXXX=DLL EMWXXX=GUI. Let me know if you have any problems.

Also the resource compiler is set up in the batch files to have the .rc and related files in a folder named "res" in the source to be compiled root folder. The Embarcadero distro includes the Microsoft rc.exe resource compiler so if you want you can swap out in the batch file the brcc32.exe compiler for the rc.exe but the command lines are different so you will have to adjust if you do that.

Simplest bcc64.exe compile

bcc64 -c BCX.cpp
bcc64 BCX.o

will produce 64 bit BCX.exe

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 959
    • View Profile
Re: SSD not the answer
« Reply #9 on: July 22, 2021, 02:52:33 PM »
Robert -- Your batch files say  Created with BldBat Version.4.1.6

Is 4.1.6 a private version? 

Ref:
https://bcxbasiccoders.com/archives/YahooGroups/Bldbat_Files/


MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 959
    • View Profile
Re: SSD not the answer
« Reply #10 on: July 22, 2021, 02:56:31 PM »

Simplest bcc64.exe compile

bcc64 -c BCX.cpp
bcc64 BCX.o

will produce 64 bit BCX.exe

Excellent!

Robert

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: SSD not the answer
« Reply #11 on: July 22, 2021, 03:07:59 PM »
Robert -- Your batch files say  Created with BldBat Version.4.1.6

Is 4.1.6 a private version? 

Ref:
https://bcxbasiccoders.com/archives/YahooGroups/Bldbat_Files/

No, but there's a bunch of broken stuff in there. I'll clean it up a bit and post it.


Robert

  • Hero Member
  • *****
  • Posts: 710
    • View Profile
Re: SSD not the answer
« Reply #12 on: July 22, 2021, 03:34:09 PM »
Robert -- Your batch files say  Created with BldBat Version.4.1.6

Is 4.1.6 a private version? 

Ref:
https://bcxbasiccoders.com/archives/YahooGroups/Bldbat_Files/

No, but there's a bunch of broken stuff in there. I'll clean it up a bit and post it.

Could you post or send me your LCCWin32 batch files? The last time I tried the Bldbat batch versions, they didn't work. It would be easier for me to fix it rather than remove it. Or else I can leave it as is, broken.

MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 959
    • View Profile
Re: SSD not the answer
« Reply #13 on: July 22, 2021, 03:41:49 PM »

Could you post or send me your LCCWin32 batch files? The last time I tried the Bldbat batch versions, they didn't work. It would be easier for me to fix it rather than remove it. Or else I can leave it as is, broken.

Posted below --

I only have 32-bit batch files, as I was never comfortable with the quality/stability of the 64-bit version.


MrBcx

  • Administrator
  • Hero Member
  • *****
  • Posts: 959
    • View Profile
Re: SSD not the answer
« Reply #14 on: July 22, 2021, 03:51:33 PM »
Robert,

I haven't looked at your batch files yet -- I just now threw this together to compile BCX in 64-bits
Very cool that GCC cmdline switches can be used.  My batch silences most warnings that I was getting
and optimizes for speed.  The speeds I'm getting compare very closely with Pelles.

Code: [Select]
@IF EXIST bc.c   del bc.c
@IF EXIST bc.cpp del bc.cpp   

@bc bc -c
@bcc64 -c bc.cpp -Ofast -nobuiltininc -Wno-logical-op-parentheses
bcc64  bc.o 

@bc bc -c
@bcc64 -c bc.cpp -Ofast -nobuiltininc -Wno-logical-op-parentheses
bcc64  bc.o 

@bc bc -c
@bcc64 -c bc.cpp -Ofast -nobuiltininc -Wno-logical-op-parentheses
bcc64  bc.o 

del bc.o
rename bc.exe Bc.exe