This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygwin Digest 7 Dec 2014 10:57:56 -0000 Issue 8995


Based on the output of the identify-compilers.sh script below, it
appears that the following C compilers are available on Cygwin. Those
labeled "Cygwin" require the cygwin1.dll file to be available.

What is the difference between the "pc" and "w64" compilers?

Why is there no x86_64-pc-mingw-gcc.exe executabe?

Are there any other C compilers available?

/usr/bin/gcc.exe                        64-bit  Cygwin
/usr/bin/i686-pc-cygwin-gcc.exe         32-bit  Cygwin
/usr/bin/i686-pc-mingw32-gcc.exe        32-bit
/usr/bin/i686-w64-mingw32-gcc.exe       32-bit
/usr/bin/x86_64-pc-cygwin-gcc.exe       64-bit  Cygwin
/usr/bin/x86_64-w64-mingw32-gcc.exe     64-bit

$ cat identify-compilers.sh
#!/bin/bash
for c in $(ls -1 /usr/bin/*gcc.exe); do
    echo === compiler: $c
    $c -o hello.exe hello.c
    objdump -p hello.exe | grep -i "cygwin"
    objdump -p hello.exe | grep -i "64$"
    rm hello.exe
done

On Sun, Dec 7, 2014 at 4:30 PM,  <paul.hermeneutic@gmail.com> wrote:
> Based on the output of the identify-compilers.sh script below, it appears
> that the following C compilers are available on Cygwin. Those labeled
> "Cygwin" require the cygwin1.dll file to be available.
>
> What is the difference between the "pc" and "w64" compilers?
>
> Why is there no x86_64-pc-mingw-gcc.exe executabe?
>
> Are there any other C compilers available?
>
> /usr/bin/gcc.exe                        64-bit  Cygwin
> /usr/bin/i686-pc-cygwin-gcc.exe         32-bit  Cygwin
> /usr/bin/i686-pc-mingw32-gcc.exe        32-bit
> /usr/bin/i686-w64-mingw32-gcc.exe       32-bit
> /usr/bin/x86_64-pc-cygwin-gcc.exe       64-bit  Cygwin
> /usr/bin/x86_64-w64-mingw32-gcc.exe     64-bit
>
> $ cat identify-compilers.sh
> #!/bin/bash
> for c in $(ls -1 /usr/bin/*gcc.exe); do
>     echo === compiler: $c
>     $c -o hello.exe hello.c
>     objdump -p hello.exe | grep -i "cygwin"
>     objdump -p hello.exe | grep -i "64$"
>     rm hello.exe
> done

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]