www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/24/02:23:09

Date: Wed, 24 Sep 1997 03:49:30 +0000 ( )
From: "Gurunandan R. Bhat" <grbhat AT unigoa DOT ernet DOT in>
To: mschulter AT value DOT net, djgpp AT delorie DOT com
Subject: Re: Hello, World! (in assembly, without libc functions)
In-Reply-To: <Pine.LNX.3.91.970923171218.813A-100000@aditya.unigoa.ernet.in>
Message-Id: <Pine.LNX.3.91.970924034341.1003A-100000@aditya.unigoa.ernet.in>
Mime-Version: 1.0

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019