Experimental Physics and Industrial Control System
|
Hi Mark,
If you set whole program optimisation to NO (
https://github.com/epics-base/epics-base/blob/ac0fc2effff43c9db116ae68c91f3a9767c991ec/configure/os/CONFIG.win32-x86.win32-x86#L13 )
does it speed things up for windows-x64? For windows-x64-static this should already be disabled via https://github.com/epics-base/epics-base/blob/ac0fc2effff43c9db116ae68c91f3a9767c991ec/configure/os/CONFIG_SITE.Common.windows-x64-static#L8
Regards,
Freddie
From: Tech-talk <tech-talk-bounces at aps.anl.gov>
On Behalf Of Mark Rivers via Tech-talk
Sent: 01 May 2026 19:16
To: EPICS Tech Talk <tech-talk at aps.anl.gov>
Subject: Strange problem when compiling sscanRecord.c on Windows
Visual Studio compiler version: Microsoft (R) C/C++ Optimizing Compiler Version 19.44.35215 for x64
sscanRecord version: master branch in the link above.
I tested by deleting all of the xxxRecord.obj files in the O.windows-64 or O.windows-x64-static directories and then timing how long it took "make" to complete. This is the time to both compile
the xxxRecord.c files and the time to link the relevant library. "make" was run without the -j option, so the build was sequential, not parallel.
The following table compares the time to compile and link the relevant library for a number of EPICS records on both static builds (windows-x64-static) and dynamic builds (windows-x64).
|
|
|
|
Time (s) for windows-x64-static
|
All 34 record files in base/modules/database/src/std/rec
|
|
|
|
All 5 record files in calc/calcApp/src
|
|
|
|
|
|
|
|
|
This is what I see with Windows TaskManager when compiling sscanRecord.c and linking the library:
- On windows-x64-static the compiler (cl.exe) is using 100% of a core for most of the 251 seconds.
- On windows-x64 the linker (link.exe) is using 100% of a core for most of the 242 seconds.
This seems very strange to me. It is taking 8-10 times longer to compile and link sscanRecord.c than it does to compile and link essentially the same number of lines of record code for the 5 records
in calcApp.
|
- Replies:
- Re: Strange problem when compiling sscanRecord.c on Windows Peterson, Kevin M. via Tech-talk
- References:
- Strange problem when compiling sscanRecord.c on Windows Mark Rivers via Tech-talk
- Navigate by Date:
- Prev:
Televac MM200 questions James P. Withrow via Tech-talk
- Next:
RE: Understanding alarms, alarm server and notification usage in other facilities Blomley, Edmund (IBPT) via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
<2026>
- Navigate by Thread:
- Prev:
Strange problem when compiling sscanRecord.c on Windows Mark Rivers via Tech-talk
- Next:
Re: Strange problem when compiling sscanRecord.c on Windows Peterson, Kevin M. via Tech-talk
- Index:
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
<2026>
|
|
ANJ, 07 May 2026 |
·
Home
·
News
·
About
·
Talk
·
Base
·
Modules
·
Extensions
·
·
Distributions
·
Download
·
Documents
·
Links
·
Licensing
·
|