Mail Archives: djgpp/1997/09/24/02:23:09
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 -