![]() |
|
|
#12 | |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
29·3·7 Posts |
Quote:
For those who care about subsequent optimization steps, I'm sure that there a number of people here who will assist you. |
|
|
|
|
|
|
#13 | |
|
Romulan Interpreter
Jun 2011
Thailand
226128 Posts |
Quote:
The zero-th law of optimization: first get it right, then get it fast, then get it right again. Or even: The zero-th law of optimization: first get it right, then get it fast, then repeat In my daily job I met hundreds of situations where the firmware didn't behave as expected after optimizations were done (I mean both turning on/off different levels of optimizations in the compiler and also hand-made optimizations, i.e. changes in the code, but especially playing with the compiler's optimizer... we preffer to use -o0 due to better step-debugging features, then switch to -o1, -o2, etc, space, time, optimizations, as the MCU memory gets full, or things get slower, and in these cases we witnessed many situations in which the code didn't work as expected after the compiler did its tricks, especially things related to timers, interrupts, signals synchronization, pwm, etc). |
|
|
|
|
|
|
#15 | |
|
Bamboozled!
"πΊππ·π·π"
May 2003
Down not across
101010000000002 Posts |
Quote:
The first and second laws, as I know them are: 1) Don't do it. 2) Don't do it now. I'll leave you to think about what they mean in terms of specific optimization techniques. |
|
|
|
|
|
|
#16 | |
|
May 2008
Worcester, United Kingdom
10000101002 Posts |
Quote:
As of now there are 20 different machine architectures for x64 versions of MPIR and hence up to this number of GMP-ECM binaries, which is a lot to manage. Since most DLL issues are the result of missing MS library DLLs, I had hoped to avoid these by providing a statically linked GMP-ECM and a statically linked MPIR DLL so that the the only dynamic link involved would be between GMP-ECM and MPIR. This almost works but fails for some reason when MPIR code involves file input/output. Anyway for those brave enough to do their own builds, I have now uploaded my Visual Studio 2017 build files (with static linking) to the GMP-ECM repository. |
|
|
|
|
|
|
#17 |
|
Apr 2012
Brady
18016 Posts |
As one of the end users who has downloaded your binaries from Jeff G.'s site, thanks for providing your work. I personally do not require optimized programs since what has been provided was more than sufficient for generic factorization.
Regarding optimization, here is a quote from Jon Bentley's "Programming Pearls" on p.88: "Don Knuth has observed that premature optimization is the root of much programming evil;..." Successful technological alchemy requires efficiency..and wizardry. Last fiddled with by jwaltos on 2017-11-06 at 16:47 Reason: added LOTR allegory |
|
|
|
![]() |
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Visual Studio 2015 build | Brian Gladman | Msieve | 3 | 2016-10-04 10:40 |
| GMP-ECM with Visual Studio 2015 | Brian Gladman | GMP-ECM | 0 | 2016-09-29 11:33 |
| Visual Studio (yech) | R.D. Silverman | Programming | 12 | 2015-09-07 00:54 |
| Using YAFU in Visual Studio | queremendi | YAFU | 12 | 2015-07-09 15:40 |
| AMD64 Applications with Visual Studio 6 or .Net | Ethan (EO) | Software | 0 | 2004-08-09 04:07 |