This is the mail archive of the 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]

gcc-3.3.1, with gnat, java, c++, fortran, objc and c

Hallo all,

I have just finished building gcc-3.3.1 based on MinGW patch with
the latest Cygwin test release 1.5.2, the MinGW patch was slightly
extended/fixed, below minimalistic test succeeds for all languages.
The C++ binaries are about 10% smaller as with previous versions.
I uploaded my latest patchfile (diff against vanilla gcc-3.3.1 source)
and also my buildscripts:
I'll upload the binary package tomorrow, so there is GNAT for
Cygwin available then, will announce it separatly tomorrow.

It is also possible to use the Cygwin gnat compiler from David
Billinghurst to bootstrap GCC with Ada, this is what I did too, please
see the README at the above website.  There were some problems for me,
I couldn't use David's gcc-3.2 to bootstrap gcc because of a segfault
at some point (235kb C source file couldn't be compiled), so I used my
own gcc-3.3 to bootstrap GCC and David's gnatgcc to bootstrap GNAT,
and I think the default cygwin gcc-3.2-x build should also be able to
bootstrap GCC 3.3.1, though I didn't tried it.

Ultra minimalistic compiler test gcc-3.3.1 (

#! /bin/sh
set -x
echo 'with Text_Io; use Text_Io;' > hello.adb
echo 'procedure hello is' >> hello.adb
echo 'begin' >> hello.adb
echo '  put ("Hello world!");' >> hello.adb
echo 'end hello;' >> hello.adb
/usr/bin/gnatmake hello
# GCJ:
echo 'public class Hello_j {' >
echo 'public static void main(String[] args) {' >>
echo '        System.out.println("Just another Java hacker,");' >>
echo '        }' >>
echo '}' >>
/usr/bin/gcj --main=Hello_j -o Hello_j
# G++:
echo '#include<iostream>' >
echo 'using namespace std;' >>
echo '#define VOID_PTR void *' >>
echo 'int main() {' >>
echo '  cout << "__CYGWIN__ pointer size is: " << (int)sizeof(VOID_PTR) << "\n";' >>
echo '}' >>
/usr/bin/g++ -o pointersize
# G77:
echo '       print *,"Hello world!"' > hello.f
echo '       end' >> hello.f
/usr/bin/g77 -o hello_f hello.f
echo '/*   hello.m' > hello.m
echo ' *   gcc -o hello hello.m -lobjc' >> hello.m
echo ' */' >> hello.m
echo 'main()' >> hello.m
echo '{' >> hello.m
echo '    printf("Hello World,\n");' >> hello.m
echo '}' >> hello.m
/usr/bin/gcc -o hello_o hello.m -lobjc
# C
echo '#include <stdio.h>' > hello.c
echo 'int main() {' >> hello.c
echo '  puts("hello, world");' >> hello.c
echo '  return 0;' >> hello.c
echo '}' >> hello.c
/usr/bin/gcc -o hello_c hello.c


Unsubscribe info:
Problem reports:

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