build speed of OpenOCD using MinGW is very slow

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
SeKi_2184131
Level 2
Level 2
First like given

The compile time to be create a Win32 version of the OpenOCD takes too long time.

When OpenOCD source file is modified the code once, it takes about 30 minutes to create an openocd-all-brcm-libftdi.exe file.

In contrast, the compile time in Ubuntu or OSX doesn't take a long time. (less than five minutes.)

Maybe, It is assumed as a characteristic of Mingw.

Is It possible to build without any problems when the build flag is changed to '-O3' from '-O0'?

Let me know how to increase the compile the speed in MinGW.

0 Likes
1 Solution
Anonymous
Not applicable

Once you make a change in the source for openOCD, you don't need to run that script.

Here is the process you should follow -

Run the build_all script once to get a binary

Then go to the openOCD directory and make any source code changes you want.

Then you can just run make && make install from the openOCD directory directly in order to get a new binary. This should take you a few minutes even with mingw

View solution in original post

0 Likes
3 Replies