Menu

GCSORT.EXE for 32-bit MinGW GnuCOBOL 3.1.2

2022-06-11
2022-06-12
  • Arnold Trembley

    Arnold Trembley - 2022-06-11

    After a great deal of help from Sauro Menna, I have built GCSORT.EXE for 32-bit MinGW GnuCOBOL 3.1.2, and it is available for download here:

    https://www.arnoldtrembley.com/GCSORT-gc312-binary.zip

    The zip archive includes the GCSORT manual in both .odt and .pdf formats. You should copy the gcsort.exe file into your \bin folder where cobc.exe and cobcrun.exe reside. When using GCSORT you will need to GnuCOBOL environment variables and runtime libraries, just like you do when running GnuCOBOL programs.

    This version of GCSORT should work with 32-bit MinGW GnuCOBOL 3.0 through 3.1.2. The zip archive also includes notes on the build procedure for gcsort in 32-bit MinGW.

    Kind regards,

     
    👍
    1
  • Simon Sobisch

    Simon Sobisch - 2022-06-11

    That's nice, thank you!

    Could you try to also create one for the MSYS2 32bit environment and another for the MSYS2 64bit one?

    Ideally there would also be a "ready to use GCSORT 64bit":

    • using the 64bit version
    • including libcob and all dependencies (best seen with https://github.com/lucasg/Dependencies/releases)
    • placing all those into a "GCSORT\bin" folder
    • placing runtime.cfg into "GCSORT\config"
    • placing the docs into"GCSORT" or under "GCSORT\doc"
    • copying the set_env.cmd from your MinGW build into "GCSORT", naming it "GCSORT.cmd"
    • dropping everything that is compiler related from it and always start ~%dp0\bin\GCSORT.exe %* at the end

    This way one could CALL "SYSTEM" USING "GCSORT some option" from a 32bit GnuCOBOL version.

     
    • Arnold Trembley

      Arnold Trembley - 2022-06-12

      Simon,

      You're welcome! And I appreciate the feedback.

      Yes, it would be very nice to also have GCSORT for MinGW64/MSYS based GnuCOBOL. I am not sure where to begin, since the folder layout for MinGW64 is different from 32-bit MinGW.

      1. Yes, GCSORT needs to be 64-bit for anyone using a 64-bit GnuCOBOL, or where 64-bit applications are needed.
      2. I am not very familiar with dependency walkers, but I gather that releasing GCSORT as a separate binary should include the required MinGW/GnuCOBOL runtime libraries, even if GCSORT is included in GnuCOBOL binaries.
        3, 4, and 5 relate to how to package GCSORT as a separate binary.
        6 and 7 also relate to packaging the binary.

      If I understand you correctly, building GCSORT this way would allow 32-bit GnuCOBOL to CALL SYSTEM USING "GCSORT some option" and invoke a 64-bit Sort. That could be very useful.

      Another desirable project for my list, but I can't guarantee when it might be ready.

      Thanks very much!

       

Anonymous
Anonymous

Add attachments
Cancel