I try turn the code into asm but i get this message.
root.c: In function `main':
root.c:6: warning: return type of `main' is not `int'
I try turn the code into asm but i get this message.
root.c: In function `main':
root.c:6: warning: return type of `main' is not `int'
Oooo post the asm... I like it.
Make sure it's declared as global:
*edit*Code:.globl _main # AT&T (.s file) global _main ; Intel (.asm file)
You are talking about gcc -S <filename> right?
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
Originally Posted by ahluka
yes i am talking about gcc-S <filename>
Hmm. Damn I'm thick - you can't post asm you don't have... sorry. I put it down to the air here and the shock of today (see ES).
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry
Originally Posted by ahluka
I just use cat root.s and it show the asm code silly me.
Perhaps you could post the source that gcc doesn't like. I suspect you've specified main with a return type of void.
EDIT: Oops, problem solved a good ten minutes ago
Jason Deckard