User forums > Using Code::Blocks

Use of Open Watcom Compiler on Linux (Mint Vanessa 20.3)

(1/1)

ThierryD:
Hi,

I try to use OW compiler into C::B IDE on Linux.
In attachment, the result of this test (succesfull).

After this test four questions at C::B Teams :
    "Why "options" by default like "-Wall" "/Zi" appears on command line to compile after create new configuration
   of compiler on Linux ?"
   "Why "Other compiler options" are not used when positioned in project properties on Linux ?"
   "Why "Other compiler options" are not used when positioned in global settings of compiler on Linux ?"
   "Can you integrate Open Watcom compiler directly into IDE on Linux and when ?"

Many thanks.

Thierry D.

Miguel Gimenez:
Why did you clone the Intel compiler? Modify the Watcom one or clone it.

stahta01:

--- Quote from: Miguel Gimenez on December 29, 2023, 07:44:25 pm ---Why did you clone the Intel compiler? Modify the Watcom one or clone it.

--- End quote ---

Some compilers are only on some OSes. Open Watcom  (OW) might be one of them.

Tim S.

ThierryD:
Hi Miguel,

Sorry, but OW is not proposed in list of "available" compilers on Linux (but true, on Windows systems)...

Greeting.

ThierryD:
Hi,

I continue to test this compiler on Linux. It seems "enougth stable" same with V2 always in work on GitHub : https://github.com/open-watcom/open-watcom-v2/releases/tag/Current-build
I install last "stable build" with sample command : "sudo ./open-watcom-2_0-c-linux-x64".
Result : directory installation in /usr/bin/watcom (under this directory many sub-directories, only "binl" or "binl64" used directly on Linux, version 32 bits or 64 bits of tools)
After tests (without CB, because syntax are not recognize ...) results are :
  construct OK with two lines, compilation and then linkage (initial PATH : "export PATH=/usr/bin/watcom/binl:$PATH")
         wcc386 hello.c -ecc -bt=linux -i=/usr/bin/watcom/lh -d2 -dDEBUG -d_DEBUG -fo=objOW32/Debug/hello.o
         wlink debug watcom file objOW32/Debug/hello.o name binOW32/Debug/hello.exe  form ELF run LIN LIBP /usr/bin/watcom/lib386/linux LIBP /usr/bin/watcom/lib386
  construct OK with two lines, compilation and then linkage (after change $PATH : "export PATH=/usr/bin/watcom/binl64:$PATH") :
        wcc386 hello.c -ecc -bt=linux -i=/usr/bin/watcom/lh -d2 -dDEBUG -d_DEBUG -fo=objOW64/Debug/hello.o
        wlink debug watcom file objOW64/Debug/hello.o name binOW64/Debug/hello.exe form ELF run LIN LIBP /usr/bin/watcom/lib386/linux LIBP /usr/bin/watcom/lib386
  construct OK with two lines, compilation and then linkage (initial PATH : "export PATH=/usr/bin/watcom/binl:$PATH")
        wcc386 hello.c -ecc -bt=linux -i=/usr/bin/watcom/lh -d0 -dNDEBUG -fo=objOW32/Release/hello.o
        wlink file objOW32/Release/hello.o name binOW32/Release/hello.exe  form ELF run LIN LIBP /usr/bin/watcom/lib386/linux LIBP /usr/bin/watcom/lib386
  construct OK with two lines, compilation and then linkage (after change $PATH : "export PATH=/usr/bin/watcom/binl64:$PATH") :
         wcc386 hello.c -ecc -bt=linux -i=/usr/bin/watcom/lh -d0 -dNDEBUG -fo=objOW64/Release/hello.o
        wlink file objOW64/Release/hello.o name binOW64/Release/hello.exe  form ELF run LIN LIBP /usr/bin/watcom/lib386/linux LIBP /usr/bin/watcom/lib386
 
WARNING : Open Watcom compiler don't generate 64 bits ELF on Linux, same with use of directory /usr/bin/watcom/binl64 in PATH.
  That is irrelevant, and compromize use of version 64 bits of these compiler. Nothing interest to test 64 bits ... same behavior on Windows system !!!

NB : Option "-ecc" during compilation, because by default OW use  special calling convention (__watcall), then "-ecc" force calling convention to __cdecl most compatible.

Syntax and list of options of these two commands in joined files.

Is it difficult to integrate OW into CB on Linux (by discover during first run by example) ?

Thank's

Thierry D.

Navigation

[0] Message Index

Go to full version