views:

639

answers:

2

I'm trying to learn mips assembly at the moment. To that end, I wrote a very simple c program...

int main(){}

...and compiled it on a mips machine with the -S option to gcc to generate assembly code. Here is what the beginning of the main function looks like:

    .ent   main
main:
    .frame $fp,8,$31
    .mask  0x40000000,-8
    .fmask 0x00000000,0

I then tried to figure out what this all means by looking at the documentation for gas, but I couldn't find any of these directives there. So what do they mean? Where can I find more information?

+2  A: 

take a look here

Konstantinos
+1  A: 

Take a look on this:

http://www.cs.unibo.it/~solmi/teaching/arch%5F2002-2003/AssemblyLanguageProgDoc.pdf

Good luke !

Best regards, Marcos.

Marcos