Gnu assembly documentation

I am trying to learn the mips assembly at the moment. To this end, I wrote a very simple program c ...

int main(){}

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

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

Then I tried to figure out what all this meant by looking at the gas documentation , but I could not find any of these directives there. So what do they mean? Where can I find more information?

+5
source share
1 answer

I know my answer is rather late. Better late than never.

.

  • - , , GNU as.

  • , , -, mips, .ent mips assembly.

guide, .ent .frame .fmask .mask: mips. Google MIPS Assembly Language Programmer’s Guide. chapter 8, Pseudo Op-Codes, , .

, GNU as mips directives? Info as, Machine Dependent Features, MIPS-Dependent. .ent , .frame .fmask .mask. , Info as MIP .

, nasm, , , ( Intel), GNU as ( AT & T). ( ), , . . GNU as Intel. , AT & T Intel. , . , .

+2

All Articles