This is the mail archive of the
cygwin-talk
mailing list for the cygwin project.
How I spent my holidays.
- From: Dave Korn <dave dot korn dot cygwin at googlemail dot com>
- To: The Venerable and Unprofessional Cygwin-Talk Maiming-List <cygwin-talk at cygwin dot com>
- Date: Sun, 22 Feb 2009 05:25:36 +0000
- Subject: How I spent my holidays.
- Reply-to: The Vulgar and Unprofessional Cygwin-Talk List <cygwin-talk at cygwin dot com>
Well, how I wasted a couple of hours this evening, anyway:
/cygdrive/f/old-gcc/gcc-1.27 $ tail build13.log
cccp.c:5006: warning: incompatible implicit declaration of built-in function
'exit'
cccp.c: In function 'pfatal_with_name':
cccp.c:5028: warning: incompatible implicit declaration of built-in function
'exit'
cccp.c: In function 'xmalloc':
cccp.c:5043: warning: conflicting types for built-in function 'malloc'
cccp.c: In function 'xrealloc':
cccp.c:5055: warning: conflicting types for built-in function 'realloc'
cc -g -o cccp cccp.o cexp.o version.o obstack.o
rm -f cpp
ln cccp cpp
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $ make
make: Nothing to be done for `all'.
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $ cat hw.c
extern int _printf (const char *fmt, ...);
int _main (int argc, const char **argv)
{
_printf ("Hello, Wrodl!\n");
return 127;
}
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $ as - -o ./crtn.o < /dev/null
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $ ln -s
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../crt0.o crt1.o
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $ PATH=.:${PATH} ./gcc.exe -v hw.c -o hw
-lkernel32 -lc -lkernel32
gcc version 1.27
cpp -v -undef -D__GNU__ -D__GNUC__ -Dunix -Di386 hw.c /tmp/ccfnQgY0.cpp
GNU CPP version 1.27
cc1 /tmp/ccfnQgY0.cpp -quiet -dumpbase hw.c -version -o /tmp/ccfnQgY0.s
GNU C version 1.27 (80386, ATT syntax) compiled by GNU C version 4.3.2
20080827 (alpha-testing) 1.
as /tmp/ccfnQgY0.s -o hw.o
ld -o hw ./crt1.o hw.o -lkernel32 -lc -lkernel32 ./gnulib -lc ./crtn.o
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $ ./hw
Hello, Wrodl!
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $ echo $?
127
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $ PATH=.:${PATH} ./gcc.exe -v -S hw.c -o hw.s
gcc version 1.27
cpp -v -undef -D__GNU__ -D__GNUC__ -Dunix -Di386 hw.c /tmp/ccZCuLnv.cpp
GNU CPP version 1.27
cc1 /tmp/ccZCuLnv.cpp -quiet -dumpbase hw.c -version -o hw.s
GNU C version 1.27 (80386, ATT syntax) compiled by GNU C version 4.3.2
20080827 (alpha-testing) 1.
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $ cat hw.s
.file "hw.c"
.text
.LC0:
.byte 0x48,0x65,0x6c,0x6c,0x6f,0x2c,0x20,0x57,0x72,0x6f
.byte 0x64,0x6c,0x21,0xa,0x0
.align 4
.globl _main
_main:
pushl %ebp
movl %esp,%ebp
pushl $.LC0
call _printf
movl $127,%eax
jmp .L1
.L1:
leave
ret
@_______. .
( /"\
||--||(___)
'" '"'---'
/cygdrive/f/old-gcc/gcc-1.27 $
Well whaddaya know, it still works!
cheers,
DaveK