public inbox for cygwin-talk@cygwin.com
 help / color / mirror / Atom feed
From: Dave Korn <dave.korn.cygwin@googlemail.com>
To: The Venerable and Unprofessional Cygwin-Talk Maiming-List
	<cygwin-talk@cygwin.com>
Subject: How I spent my holidays.
Date: Sun, 22 Feb 2009 05:16:00 -0000	[thread overview]
Message-ID: <49A0E1D0.5020309@gmail.com> (raw)


  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


                 reply	other threads:[~2009-02-22  5:16 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49A0E1D0.5020309@gmail.com \
    --to=dave.korn.cygwin@googlemail.com \
    --cc=cygwin-talk@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).