GCC and assembly

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Michael

GCC and assembly

Post by Michael »

Hi,
I'm using gcc and nasm trying to write my own OS. I'm not familiar with AT&T-Syntax and so I'm only using ASM in in extern files.
But how do I access the parameters GCC pushes to stack?
And where do I write the return value so that I can reach it in my c-part?

Thanx ahead for your help, Michi
Michael

RE:GCC and assembly

Post by Michael »

Oops!
I'm very sorry for having disturbed you! I just found what I was looking for.
And it's only 2 mouse-clicks away! (Developer Guides/Mixing Assembly and C)
I'm going to punish myself.

Bye, Michi
Post Reply