Date: Wed, 24 Sep 1997 03:49:30 +0000 ( ) From: "Gurunandan R. Bhat" To: mschulter AT value DOT net, djgpp AT delorie DOT com Subject: Re: Hello, World! (in assembly, without libc functions) In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk Sorry to reply to my own message, On Tue, 23 Sep 1997, Gurunandan R. Bhat wrote: > Greetings, > > Here is a program that I wrote to print "Hello, World!" > in assembly. It compiles with: > > gcc hello.s -o hello.exe Actually it also compiles with the -Wall option without complaining. It was late last night and I was tired and I had about 4 prospective versions......... So my earlier staement that gcc complains about multiple definitions with -Wall is not correct. So go ahead, bite the bullet and compile with: gcc -Wall hello.s -o hello.exe Also in my code I have the statement: > .globl _printf Please ignore it, I had put it in while debugging and forgot to take it out. It is not call'ed by my code. As I said, it was late and..... Thanks Gurunandan